Open Bug 756877 Opened 12 years ago Updated 4 months ago

Firefox cannot display images with bogus color profiles

Categories

(Core :: Graphics: Color Management, defect)

x86_64
Windows 7
defect

Tracking

()

People

(Reporter: gcp, Unassigned)

Details

Attachments

(2 files)

http://4walled.cc/show-729990

Gives a black square in Firefox. Works correctly in IE, Chrome and Opera.

Windows Image Viewer also fails on it, so it may be corrupted or strange. Nevertheless, we're the only browser that can't display it.
Component: General → ImageLib
Product: Firefox → Core
QA Contact: general → imagelib
Hope this helps pinpoint the anomaly.
Summary: Firefox cannot display particular images → Firefox cannot display particular JPEG images
Works fine in OS X Preview, as well as in Firefox 12 with gfx.color_management.mode set to 0 (disabled).

(Looks like an otherwise normal RGB JPEG from a quick glance. Also, in both cases I mention the image looks fine -- no edge smearing as in attachment 625499 [details])
Component: ImageLib → GFX: Color Management
QA Contact: imagelib → color-management
Another example:
http://4walled.cc/show-740608
Could be a regression of bug 752254. Is this nightly only?
Was already broken in Firefox 3.7:
http://hg.mozilla.org/mozilla-central/rev/b2f7bc2aa0bc
This image has an A2B0 LUT but otherwise the color profile is "bogus". The image loads fine when color_management mode is set to 2. If you wanted this to work with color_management set to 1, you would need to add a check for bogus profile in image decoding and you would need to only short-circuit the bogus check when A2B0 exists and v4 is enabled. Since A2B0 is ignored unless v4 is enabled, it doesn't make sense to consider all profiles with A2B0 as valid.
(In reply to Tony Payne from comment #7)

Thanks for investigating this.
Summary: Firefox cannot display particular JPEG images → Firefox cannot display images with bogus color profiles
I confirm the bug on Linux x86_64 with Firefox 16.0.1
Severity: normal → S3

Great site for wallpapers
https://yeswallart.com/

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