本文介绍了我应该在Drupal中使用ImageMagick还是GD2?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我应该在Drupal中使用ImageMagick还是GD2?什么是利弊?
Should I use ImageMagick, or GD2, with ImageAPI in Drupal? What are the pros and cons?
推荐答案ImageMagick
ImageMagick
- 更快
- 可以处理更多格式
- 图像二进制文件可以在PHP的内存限制之外工作(据我所知 - 请纠正我,如果我错了)
- 至少可以从CMYK文件中获取某些东西(尽管结果通常看起来像某人在您的源代码图像上,颜色配置文件处理是可怕的) / li>
- 没有问题调整透明的GIF,这是一些版本的GD
- 中的问题在从TrueType或其他字体渲染文本时更加一致,不同版本的FreeType,以不同的方式呈现相同的字体。
- is faster
- can handle many more formats
- the imagick binary works outside PHP's memory limit (As far as I know - please correct me if I'm wrong)
- can at least get something out of a CMYK file (though the result often looks like someone puked on your source image, colour profile handling is terrible)
- has no problems resizing transparent GIFs which was an issue in some versions of GD
- is better and more consistent when rendering text from TrueType or other fonts - no hassle with different versions of FreeType that render the same font in a subtly different way.
在缺点上,它不能随处可见,而且@Nicholas Goy说,这是一个沉重的依赖。但是当我有选择时,我使用ImageMagick。
On the downside, it is not available everywhere and as @Nicholas Goy says, a heavy dependency. But when I have the choice, I use ImageMagick.
更多推荐
我应该在Drupal中使用ImageMagick还是GD2?
发布评论