Edit report at http://bugs.php.net/bug.php?id=53598&edit=1
ID: 53598 User updated by: the-ninth at gmx dot com Reported by: the-ninth at gmx dot com Summary: GD does not support color profiles Status: Assigned Type: Feature/Change Request Package: GD related Operating System: Irrelevant PHP Version: Irrelevant Assigned To: pajoye Block user comment: N Private report: N New Comment: Hi, Check these two pictures: http://www.the-ninth.com/demo/demo_php.jpg http://www.the-ninth.com/demo/demo_lightroom.jpg demo_lightroom.jpg was generated by Adobe Lightroom and contains the profile. Demo.php was generated by GD and does not contain the profile. To see the difference you need to have a system color profile that is different from sRGB, like you would have with a calibrated monitor. Then if you open them in Firefox you'll see the difference. I think Safari does color management too, so you might see the difference there as well. Maybe also IE9. If you do not have a calibrated monitor, then probably sRGB is the system default anyway, so in this case Firefox takes sRGB for the picture without the profile and the result is correct. Thanks, Robert Previous Comments: ------------------------------------------------------------------------ [2010-12-23 15:37:47] paj...@php.net hi, Can you send me a couple of images with the profile(s) you are referring to please? ------------------------------------------------------------------------ [2010-12-23 12:49:13] the-ninth at gmx dot com Description: ------------ Hi, It seems that GD currently does not support embedding color profiles into JPEGs created with ImageJpeg(). The colors of the generated JPEG then look different from the ones in the original JPEG if the browser is color-management-capable and the system uses a different profile than was embedded in the original JPEG. For example, I have a large image generated by Adobe Lightroom, which has sRGB embedded as profile. The resized photo generated by GD has lost the profile. I am using Firefox and have a calibrated monitor, so the system does not use sRGB per default. In Firefox the resized picture has different colors then the original one. Only if I force Firefox to use sRGB by setting gfx.color_management.mode to 1, the picture looks the same as the original. But obviously I cannot expect this from my website's visitors. When researching this on the Web I found that many people have that problem but there is no solution in sight. ImageMagick is not an option for me, my hoster does not support it. It would be great if GD could be extended to allow embedding color profiles into images. Thanks, Robert ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/bug.php?id=53598&edit=1