Last modified: 2011-08-06 08:52:20 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T32214, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 30214 - Color profile stripped from some thumbnails
Color profile stripped from some thumbnails
Status: RESOLVED DUPLICATE of bug 19960
Product: MediaWiki
Classification: Unclassified
File management (Other open bugs)
unspecified
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
: upstream
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-08-04 09:41 UTC by folengo
Modified: 2011-08-06 08:52 UTC (History)
3 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description folengo 2011-08-04 09:41:30 UTC
This problem was raised on 3 August 2011 at Wikimedia Commons village pump. See description there : http://commons.wikimedia.org/wiki/Commons:Village_pump#Pale_photos
Comment 1 Brion Vibber 2011-08-04 17:23:43 UTC
The three images cited there look overly pale in both original and thumbnail in Firefox 5.0.1 / Mac OS X 10.7, and look reasonably pleasant in both forms in Safari 5.1 and saved to disk and loaded in Preview on the same machine.

It looks to me like the color profile *is* being preserved (or it wouldn't get seen by Safari and Preview), whereas Firefox is either ignoring the profile or horribly misinterpreting it.
Comment 2 Mark A. Hershberger 2011-08-04 20:36:35 UTC
Pretty sure I've heard about this and this is a known FF problem.  Lemme see if I can find it.
Comment 3 Mark A. Hershberger 2011-08-04 20:58:26 UTC
http://news.cnet.com/Safari-ushers-in-better-browser-colors/2100-1012_3-6191815.html

Safari supports color profiles, but firefox doesn't.
Comment 4 deletesoftware 2011-08-05 11:30:56 UTC
(In reply to comment #3)
> http://news.cnet.com/Safari-ushers-in-better-browser-colors/2100-1012_3-6191815.html

That article is too old (2007).

From the links Kevin Brosnan gave me, it is Firefox that supports color profiles, while some other software does not.

http://commons.wikimedia.org/wiki/File:Command_and_control_center_Port_of_Long_Beach_CA.jpg — see file history. The oldest image is pale in Firefox 5.0.1; there is only a small difference between the two oldest images in Firefox trunk nightly 20070103.

http://www.libpng.org/pub/png/png-colortest.html (works as described in Firefox 5.0.1 Linux-x86_64 and 3.5.17 Linux-i686, does not in Firefox trunk nightly 20070103, Konqueror 4.6.5, Geeqie 1.0, Gwenview).

http://www.libpng.org/pub/png/colorcube/colorcube-pngs-iCCP.html (works in Firefox 5.0.1, not in Konqueror)  There are links to more tests at the bottom of that page.
Comment 5 deletesoftware 2011-08-05 13:22:40 UTC
There is some lack of support for ICC v4 profiles in Firefox though: https://bugzilla.mozilla.org/show_bug.cgi?id=488800
Comment 6 Mark A. Hershberger 2011-08-05 13:45:35 UTC
What sort of profile support does imagemagick have?
Comment 7 Brion Vibber 2011-08-06 08:36:14 UTC
It shouldn't matter what support imagemagick has really, it just needs to pass the profile through to the thumbnail. In all cases I've seen, it does -- the browser then either understands it or doesn't.

I tried disabling color profile management in Firefox -- see http://kb.mozillazine.org/Gfx.color_management.enabled

With this off, the 'too pale' images render relatively reasonably (but darker/less saturated than Safari/Preview show them); this probably indicates that either:

* Firefox is mishandling that particular color profile, and other apps are handling it right

-or-

* the profile is wrong (thus Firefox is "correctly" showing the file as pale), but other apps with color management that do correction on images such as Safari are somehow ignoring it or mishandling it in a way that shows a nicely balanced image

When I load the image into Gimp (on either OS X or Linux) I'm given the opportunity to either convert the file into sRGB from its native profile, or keep it -- either way it ends up looking decent, unlike in Firefox (again, on either OS).

So I'm a bit inclined that it may be Firefox's color management mishandling the profile.
Comment 8 Brion Vibber 2011-08-06 08:52:20 UTC
Ok, on further investigation there were a couple images where the thumbnails had the profile missing (and thus rendered ok in Firefox, while other sizes didn't)...

... because those particular thumbnails had not been re-rendered since bug 19960 was resolved (upgrading ImageMagick on the clusters to a version new enough that it preserves the profiles).

You can do an ?action=purge on any affected page as you find them.

The misrendering seems to be an issue with Firefox's color management system, and is likely the same problem as bug 30249 -- I recommend adding these links over there.

*** This bug has been marked as a duplicate of bug 19960 ***

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links