From: Operating system: Irrelevant PHP version: Irrelevant Package: GD related Bug Type: Feature/Change Request Bug description:GD does not support color profiles
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 bug report at http://bugs.php.net/bug.php?id=53598&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=53598&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=53598&r=trysnapshot53 Try a snapshot (trunk): http://bugs.php.net/fix.php?id=53598&r=trysnapshottrunk Fixed in SVN: http://bugs.php.net/fix.php?id=53598&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=53598&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=53598&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=53598&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=53598&r=needscript Try newer version: http://bugs.php.net/fix.php?id=53598&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=53598&r=support Expected behavior: http://bugs.php.net/fix.php?id=53598&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=53598&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=53598&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=53598&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=53598&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=53598&r=dst IIS Stability: http://bugs.php.net/fix.php?id=53598&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=53598&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=53598&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=53598&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=53598&r=mysqlcfg