sRGB PNGs handled with inappropriate colour correction

Bug #458133 reported by And Clover
20
This bug affects 3 people
Affects Status Importance Assigned to Milestone
firefox-3.5 (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Binary package hint: firefox

firefox-3.5.3+nobinonly-0ubuntu6 on Karmic beta

Firefox is treating PNGs containing the 'sRGB' chunk as having a specific colour space different to the current colour space, and attempt to ‘correct’ it, resulting in colours that do not match other HTML, CSS and image colours on the same page.

This is a similar problem to that which occurs when a gAMA chunk is present and some past browsers have also had this behaviour, but it is generally considered undesirable: sRGB PNGs on the web should be rendered the same as unlabelled-colour-space PNGs.

To reproduce, create a small image with fully-blue colour, save it as a PNG from GIMP (which, unfortunately, adds an sRGB chunk to all saved PNGs; an issue has been filed upstream to request this is stopped) and load it into an HTML page with body bgcolor="#0000FF". An example test case can be found temporarily at http://www.doxdesk.com/file/blue.html

Expected result: completely blue page. Actual result: the image in the top-left is discoloured.

This issue does not occur in Firefox 3.5.3 on Windows or Slax (KDE3), or Shiretoko 3.5.3 on Jaunty, which is why I'm filing it here not upstream. However these other distros were tested in a VirtualBox, if that makes a difference. I'm not familiar with how colour spaces are managed under Ubuntu and Firefox in general, if they are managed at all, and whether EDID data could make a difference when running virtualised.

Revision history for this message
Micah Gersten (micahg) wrote :

Thank you for reporting this to Ubuntu. I do not have this issue with an Intel graphics chipset. What graphics chipset do you have?

affects: firefox (Ubuntu) → firefox-3.5 (Ubuntu)
Changed in firefox-3.5 (Ubuntu):
status: New → Incomplete
Revision history for this message
Monkey (monkey-libre) wrote :

We are closing this bug report because it lacks the information we need to investigate the problem, as described in the previous comments. Please reopen it if you can give us the missing information, and don't hesitate to submit bug reports in the future. To reopen the bug report you can click on the current status, under the Status column, and change the Status back to "New". Thanks again!

Changed in firefox-3.5 (Ubuntu):
status: Incomplete → Invalid
Revision history for this message
And Clover (bobince) wrote :

I'm also on Intel graphics (G45). Problem still occurs in Firefox 3.6.3 Ubuntu Lucid. Reopening.

Changed in firefox-3.5 (Ubuntu):
status: Invalid → New
Revision history for this message
Per Ångström (autark) wrote :

See also bug #657297.

B Bobo (yout-bobo123)
tags: added: color colour firefox rendering
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in firefox-3.5 (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.