推荐Linux上的实时图像处理工具 [英] Recommendation for real time image processing tools on Linux

查看:116
本文介绍了推荐Linux上的实时图像处理工具的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试找到一个可以进行图像大小调整,图像/文本重叠和格式转换的实时图像处理工具。我找到了一些相关的帖子,但他们并没有完全回答我的问题。

I'm trying to find a real time image processing tool that can do image resizing, image/text overlaying and format converting. I found some related posts but they don't quite answer my question.

该工具的优先标准:


  1. 处理时间需要小于100毫秒。

  2. 输出图像的大小需要很小。它需要将1到2兆字节的jpeg图像转换为大约75k。

  3. 质量需要良好。这是主观的。我们知道jpeg图像转换会失去质量。我希望找到一个具有更好转换算法的工具,使输出接近原始图像。

  4. 它可以用java或php实现。

  1. The processing time needs to be less than 100 ms.
  2. The size of output image needs to be small. It needs to convert 1 to 2 megabytes of jpeg image to around 75k.
  3. The quality needs to be good. This is subjective. We know jpeg image conversion loses quality. I hope to find a tool that has better conversion algorithm such that the output is close to the original image.
  4. It can be implemented in java or php.

一个常用的工具是GD库。 GD库符合标准1和2.但图像质量通常不是很好,这也是我仍在寻找的原因。

One commonly used tool is GD library. GD library meets criteria 1 and 2. But the image quality is usually not great, which is the reason I'm still looking.

我通过命令行尝试了ImageMagick。质量更好但输出图像的尺寸也更大。我相信它也比GD慢。

I tried ImageMagick through command line. The quality is better but the size of output image is also larger. I believe it's also slower than GD.

我想知道您推荐的实时图像处理工具。如果是GD或ImageMagick,是否有提高整体性能的技巧?

I wonder what real time image processing tool you'll recommend. If it's GD or ImageMagick, are there tricks to improve the overall performance?

谢谢!

推荐答案

我强烈推荐使用graphicsmagick( http://www.graphicsmagick.org/)。它是imagemagick的一个分支,更注重性能。

I'd highly recommend graphicsmagick (http://www.graphicsmagick.org/). It's a fork of imagemagick with more of a focus on performance.

还有一些技巧可以让imageMagick / gm产生更小的图像 - 例如你可以剥离颜色配置文件从您创建的图像中,例如:

There are also tricks to getting imageMagick/gm to produce smaller images - for example you can strip the colour profiles from the images you create, eg:

gm mogrify -resize 180x180 -quality 75 +profile "*" image.jpg

这篇关于推荐Linux上的实时图像处理工具的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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