Drupal Image Compression - Distorted Images
I am currently having some image distortinon issues with a Drupal site. The site uses ImageCache enabled. I have looked through the Image API settings as well as Image Toolkit setttings and they both are set to 100%. I have even looked into the original image (not in imagecache directory) and it is still being distorted. Any insight will be greatly appr开发者_JAVA技巧eciated on what may be compressing / distorting these images.
Thanks in advance,
JN
I believe Drupal uses GD for its image manipulation... which is natively supported in most linux distros... as well as PHP, and is best known as G*D D***T. Your best bet is to install ImageMagick, known as iMagick under PHP. It is supper simple to use. Writing a compression function will take you about 6 lines of code at most, and perhaps another 6 if you need to incorporate a switch statement to handle several different formats.
The culprit of this ended up being the settings in CCK. I went to manage fields for this specific content type and removed the max/min resolution for this content type and it worked. In addition I verified quality was at 100% in ImageAPI as well as Imagetoolkit.
精彩评论