Req #53598 [Com]: GD does not support color profiles
| From: | rostavanek at gmail dot com | Date: | Thu, 29 May 2014 23:23:18 +0000 |
| Subject: | Req #53598 [Com]: GD does not support color profiles | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-185979@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=53598&edit=1
ID: 53598
Comment by: rostavanek at gmail 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 i have the same exact problem using OpenCart which uses GD library... i explained everything
here:
http://forum.opencart.com/viewtopic.php?f=20&t=125838
essentially most APPLE MACBOOK users that use Firefox will end up with washed out colors for all
images that are resized using GD library... the color profile is discarded by GD library and
'Untagged RGB' files are generated by GD library...
my situation refers to OpenCart because thats where i need to fix the problem...
thanks and BUMP
Previous Comments:
------------------------------------------------------------------------
[2011-02-27 10:33:13] pulzarraider at gmail dot com
One more example, which shows difference in image with and without color profile. Use Firefox to see
the difference:
Original picture (with ICC profil Samsung - Natural Color Pro)
http://fotky.sme.sk/foto/171985/vrak-skeleton-coast
Picture resized with GD2 library (color profile is lost, sRGB used?)
http://fotky.sme.sk/foto/171985/vrak-skeleton-coast?type=v&x=650&y=433
------------------------------------------------------------------------
[2010-12-26 19:44:26] the-ninth at gmx dot com
Sorry, should be back now.
I added one more:
http://www.the-ninth.com/demo/demo_phpim.jpg
This one was re-sized with ImageMagick, which retains the color profile.
Cheers, Robert
------------------------------------------------------------------------
[2010-12-26 19:22:25] pajoye@php.net
Can you restore the links please? 404 now
------------------------------------------------------------------------
[2010-12-24 01:11:27] the-ninth at gmx dot com
Hi,
Try this one:
http://www.the-ninth.com/demo/demo_php_argb.jpg
http://www.the-ninth.com/demo/demo_lightroom_argb.jpg
It was generated in AdobeRGB color space and the profile was removed during resizing. I assume that
your Firefox should display it differently, because for the one from Lightroom it knows that it is
AdobeRGB while for the one from PHP/GD it will fall back to sRGB.
But in any case, the essence is that color profiles are a part of images and at least some current
browsers rely on this information. At the moment it is FF and Safari, and IE9 will have
color-management too. Then the problem will affect the majority of users.
So for the future it would be really helpful if GD would allow to read/write color profiles.
Cheers, Robert
------------------------------------------------------------------------
[2010-12-23 15:52:56] pajoye@php.net
I think I need more visible differences as I don't have a calibration system in place nor a
calibrated monitor :P
I will already analyze the delta in the meta information of both images.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
https://bugs.php.net/bug.php?id=53598
--
Edit this bug report at https://bugs.php.net/bug.php?id=53598&edit=1