GD VS ImageMagick VS Gmagick for jpg?

我正在放弃 GD 在我的网站操纵形象的步骤-这是可怕的。

每个人都说使用 ImageMagick 是因为他们比 GD 更好,但是 ImageMagick 和 Gmagick (瑞士军刀图像处理)怎么样呢?

Zend 在这里有一篇很好的文章 http://devzone.zend.com/article/10531在谈论他们。

在我动身前往 ImageMagick 之前,有没有什么动机去使用 gmagick 呢?

(PHP 5.3 +)

编辑: 在两个词库之间问哪个更好有什么错?我觉得这是个合理的问题。如果有人能够解释一个比另一个更好的观点,将有助于我和其他人阅读这个问题。为什么关闭这样一个问题? ?

编辑2: 对于每个问我需要做什么的人: 我认为这是显而易见的: 用户上传图片(比可以是 png/gif/bmp w/e) ,我需要转换成 JPG 格式,然后存储在数据库中,最终,如果他们太大,我需要调整他们的大小一点。

谢谢

45418 次浏览

According to Wikipedia, GraphicsMagick is a fork from ImageMagick 5.5.2.

As far as I can see, GMagick comes with no new features; the fork is concentrating on better performance and stability, which as @Col says you should test and compare yourself.

From a feature perspective, if a library is needed for more than just basic resizing and cropping operations, I personally would prefer ImageMagick any day because of the vast, well-documented and illustrated library of thousands of examples which work very well. GraphicsMagick does not seem to have documentation of similar quality.

It's also likely that GMagick does not have whatever new features were added to IM since version 5.5.2. It may be worth checking out the ImageMagick change logs whether you're missing out on anything you need.

On a highly subjective note, ImageMagick is definitely the more popular and well-known library, and you are likely to find more support, examples and scripts for it. Also I doubt whether the performance differences are going to really make a difference in most use cases - in my experience over the past ten years, IM is not the fastest, but also not the slowest of graphics processing libraries and perfectly suitable for most everyday uses.

What is it you don't like about GD? Is it the API, is it missing features or is it performance?

Perhaps you can try the graphics library imagine - it has a nice, clean OOP API and can uses GD, ImageMagick and GraphicsMagick as "backends". This way you can also test which library has the best performance, without having to change your image manipulation code.