服务器端图像处理 [英] Serverside image processing

查看:98
本文介绍了服务器端图像处理的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在设计一个实时执行服务器端图像处理的Web应用程序.处理任务包括对各种格式的图像应用不同的效果,例如灰度,模糊,油漆,铅笔素描等.我想使用我已经熟悉的java/servlets来构建它.我找到3个选择,

I am designing a web application that does server side image processing in real time. Processing tasks include applying different effects like grayscale, blur, oil paint, pencil sketch etc on images in various formats. I want to build it using java/servlets which I am already familiar with. I found 3 options,

1)使用纯Java映像库,例如java.awt或 http://www.jhlabs .com/ip/index.html 2)使用Gimp/ImageMagick等命令行工具 3)使用具有Java绑定的c,c ++图像库.

1) Use pure java imaging libraries like java.awt or http://www.jhlabs.com/ip/index.html 2) Use command line tools like Gimp/ImageMagick 3) Use c,c++ image libraries that have java bindings.

我不知道上面的哪个选项对性能有帮助.看来选项2)和3)都是不错的性能选择,但是在排除1)之前我想确定一下.我还听说,除非已在服务器上安装gtk或xwindows,否则无法使用命令行运行gimp.在服务器端运行它们时2)或3)是否会出现任何此类问题?

I don't know which of the above options is good keeping the performance in mind. It looks like option 2) and 3) are good performance wise, but I want to be sure before I rule out 1). I have also heard gimp cannot be run using command line unless gtk or xwindows is already installed on the server. Will there be any such problems with 2) or 3) while running them server side?

还请为此目的建议任何好的图像处理库.

Also please suggest any good image processing libraries for this purpose.

推荐答案

Imagemagick或graphicsmagick都很好,您可以在大多数语言中找到针对它们的包装器.

Imagemagick or graphicsmagick are pretty good, you can find wrappers for them in most languages.

也有很多在线示例和使用这些库进行图像处理的教程

There are quite a few online examples and tutorials for image manipulation using these libraries too

这篇关于服务器端图像处理的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆