Closed Bug 1781765 Opened 3 years ago Closed 1 year ago

Incorrect color rendering on JPG image with color profile

Categories

(Core :: Graphics: Color Management, defect)

x86_64
Windows
defect

Tracking

()

RESOLVED FIXED
Tracking Status
firefox105 --- affected

People

(Reporter: gcp, Unassigned)

References

(Blocks 1 open bug)

Details

Attachments

(7 files)

A user reported over IRC that the following image renders pink on his x64/Windows machines, both Win10 and Win11:

http://www.spl80.com/magazine/wp-content/uploads/Tina-Turner-Tony-McGhee.jpg

But correctly on Firefox for ARM (Android + macOS) and all other browsers.

I cannot reproduce on mine. Investigating shows that the image contains an embedded color profile "Flextight 646 & 848".

This was reported on release and ESR, I tested Nightly.

Can you reproduce, Andrew?

Severity: -- → S3
Flags: needinfo?(aosmond)

No.

Blocks: 1641232
Flags: needinfo?(aosmond)
Attached image pwnt.png
Attached file bork1.txt

Machine #1 (Lenovo T14 AMD, Windows 11)

Attached file bork2.txt

Machine #2 (Windows Server 2019 workstation)
RDP or local display doesn't matter

Attached file bork3.txt

Machine #3 (Windows 10, fresh install of Firefox made to test this)

Attached file bork4.txt

Machine #4, old Intel MacBook, old Mac OS.

Attached file bork5.txt

Machine #5 (MS Surface 4 Pro on Win10)

Saved local copy of the JPEG renders badly in Firefox too, looks good in every other program.

This JPEG does seem to have some unusual color profile information if that matters.

This bug doesn't appear random so far - every machine that did it does it every time.

Only machine where it doesn't happen is the M1 Mac.

08:29 <Case> ok, pink on my Win10 virtual machine too
08:30 <Case> and pink on my Win10 laptop
08:30 <Case> not pink on my Win11 desktop
08:32 <Case> aha, pink on a clean profile with Win11 too
08:33 <Case> so it's some setting I have adjusted that fixes it on my main profile
08:36 <Case> gfx.color_management.enablev4
08:36 <Case> that defaults to false. Set to true and it works
08:39 <Case> that's an about:config flag if you aren't familiar with the full config system

Depends on: 1500737

https://searchfox.org/mozilla-central/source/modules/libpref/init/StaticPrefList.yaml#5367

That explains why we couldn't repro on Nightly or why it works on macOS.

Actually the pref mentioned in comment #12 is gfx.color_management.enablev4 which is shipped by https://phabricator.services.mozilla.com/D159527. I can confirm that the image now doesn't seem pink but disabling that pref makes it pink. So I guess this is now fixed.

Status: NEW → RESOLVED
Closed: 1 year ago
Depends on: 488800
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: