我应该在Drupal中使用ImageMagick还是GD2?

编程入门 行业动态 更新时间:2024-10-24 05:16:28
本文介绍了我应该在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?

本文发布于:2023-06-09 04:11:57,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/594987.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:Drupal   ImageMagick

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!