[argyllcms] Color management in Firefox (was: Re: Color management in google chrome)

  • From: Chris Lilley <chris@xxxxxx>
  • To: argyllcms@xxxxxxxxxxxxx
  • Date: Mon, 23 Apr 2012 16:22:39 +0200

Graeme wrote:
>> Firefox uses a rather broken CMM library though.

On Saturday, April 21, 2012, 11:01:35 AM, George wrote:
GP> Can you please say more about this? In what respects is Firefox's
GP> CM broken? In my informal tests, and judging results on a monitor
GP> that only covers the gamut of sRGB, Firefox seems to perform the
GP> same as any color-managed application. It does the right thing for
GP> images that are tagged with a different color space than sRGB, unlike 
Chrome.



The sad story of Color management in Firefox is:

- implemented with lcms, but disabled, in 3.0

- enabled in 3.1

https://developer.mozilla.org/En/ICC_color_correction_in_Firefox

- lcms removed in 3.5, allegedly due to an lcms security flaw.
  Code size and performance turn out to be the actual reasons.
  Replaced by a Moz-specific library, qcms, with minimal v.2 support and no v.4 
support

Mozilla mention that this "may result in images being too dark". Yeah, and many 
other problems.

Firefox 3.5 to current (14a1) use qcms

- qcms gets hacked to handle some v.4 profiles by removing the version number 
check and pretending they are v.2 ;)

Benoit Girard  starts working on qcms in 2011

- qcms support for (some of) v.4 added, but disabled, in nightly builds
http://benoitgirard.wordpress.com/2011/07/29/qcms-color-management-improvements/


To recap:
lcms covered all of ICC v.2 and some ICC v.4
qcms covered some of ICC v.2
lcms2 covers all all of ICC v.2 and v.4

Relevant Firefox bugs, from when it was using lcms:

Bug 466776 - Monitor icc profile should be ignored when printing with color 
management 
https://bugzilla.mozilla.org/show_bug.cgi?id=466776

Relevant Firefox bugs, after moving to qcms:

Bug 488800 - qcms doesn't support ICC version 4 
https://bugzilla.mozilla.org/show_bug.cgi?id=488800

Bug 538114 - qcms doesn't support LUT ICCv2 profiles (both LAB & XYZ) 
https://bugzilla.mozilla.org/show_bug.cgi?id=538114

Bug 500404 - qcms' bogus profile detection sometimes has false positives 
https://bugzilla.mozilla.org/show_bug.cgi?id=500404

Bug 586195 - Colour management when veiwing web pages has stopped working with 
wide gamut monitors 
https://bugzilla.mozilla.org/show_bug.cgi?id=586195

Bug 656676 - Fallback to sRGB monitor profile doesn't work as documented 
https://bugzilla.mozilla.org/show_bug.cgi?id=656676

Bug 673639 - Color management with specified ICC profile does not work. 
https://bugzilla.mozilla.org/show_bug.cgi?id=673639

Bug 677077 - Color management does not respect multiple monitors 
https://bugzilla.mozilla.org/show_bug.cgi?id=677077

Bug 678324 - Rendering intent is ignored completely during color management 
https://bugzilla.mozilla.org/show_bug.cgi?id=678324

Bug 679527 - qcms performance regression from Fx3 using LUT ICC profile 
https://bugzilla.mozilla.org/show_bug.cgi?id=679527

Bug 693179 - Enabling ICC version 4 color management on Fx8+ causes lagging 
video frames during video playback of embedded Flash videos. 
https://bugzilla.mozilla.org/show_bug.cgi?id=693179

Bug 709732 - double color correction with X Color Management 
https://bugzilla.mozilla.org/show_bug.cgi?id=709732


It should also be noted that this color management applies only to raster 
images, not to other page elements (such as colors specified using CSS).

  "It is used when decoding images. There is currently no plans to expand this 
to the rest of the rendering in the near future."


-- 
 Chris Lilley   Technical Director, Interaction Domain                 
 W3C Graphics Activity Lead, Fonts Activity Lead
 Co-Chair, W3C Hypertext CG
 Member, CSS, WebFonts, SVG Working Groups


Other related posts:

  • » [argyllcms] Color management in Firefox (was: Re: Color management in google chrome) - Chris Lilley