We have a pretty standard image resizing implementation in PHP. However, some images come out with a greenish tint.
Here's the original: http://www.capitallightingfixture.com/product_images/3979WG-514.jpg
Here the size is resized: http://www.capitallightingfixture.com/product_images/5-3979WG-514.jpg
I checked the color profile on the original jpg and RGB.
Here is part of resizing my PHP:
if (function_exists("gd_info")){ $dst_img = imagecreatetruecolor($thumb_width,$thumb_height); }else{ $dst_img = imagecreate($thumb_width,$thumb_height); } if(@imagecopyresampled($dst_img,$src_img,0,0,0,0,$thumb_width,$thumb_height,$origw,$origh)){ }else{ imagecopyresized($dst_img,$src_img,0,0,0,0,$thumb_width,$thumb_height,$origw,$origh); } imagedestroy($src_img); imagejpeg($dst_img, '', 85);
source share