Closed Bug 1620600 Opened 4 years ago Closed 4 years ago

Add flags to allow image decoders to produce sRGB output

Categories

(Core :: Graphics: ImageLib, enhancement, P3)

Desktop
All
enhancement

Tracking

()

RESOLVED FIXED
mozilla77
Tracking Status
firefox77 --- fixed

People

(Reporter: aosmond, Assigned: aosmond)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

Currently we can only use the gfx.color_management.force_srgb to force all images to sRGB, or accept device space. Adding a surface flag which allows us to selectively output sRGB is useful for clipboard purposes, as well as testing.

Currently we can only use the gfx.color_management.force_srgb pref to
force all images to sRGB, or just accept device space. It would be nice
to be able to test device space in our tests, as well as sRGB. This
patch adds a surface flag which allows us to selectively output sRGB.

This will also be useful for clipboard and re-encoding purposes, since
they want a neutral output. In an ideal world we would just output the
color profile and the pixel data in the original color space, but for
now this is a relatively simple approach that works on all platforms and
interops well with all applications.

Pushed by aosmond@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/e6e5816403d9
Add flags to allow image decoders to produce sRGB output. r=tnikkel

There's a r+ patch which didn't land and no activity in this bug for 2 weeks.
:aosmond, could you have a look please?
For more information, please visit auto_nag documentation.

Flags: needinfo?(aosmond)
Pushed by aosmond@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/aae7f0d27d71
Add flags to allow image decoders to produce sRGB output. r=tnikkel
Flags: needinfo?(aosmond)
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla77
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: