Closed Bug 1702085 Opened 3 years ago Closed 3 years ago

Gamma of avif images appears incorrect

Categories

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

x86_64
Windows 10
defect

Tracking

()

RESOLVED DUPLICATE of bug 1654461
Tracking Status
firefox89 --- affected

People

(Reporter: mt, Unassigned)

References

(Blocks 1 open bug, )

Details

Attachments

(1 file)

Reading through Jake Archibald's article comparing image formats against AVIF, one of the images sticks out by rendering very differently in Firefox (Nightly, 89.0a1 2021-03-29). At least on my screen, this is looks like a gamma correction problem in that the AVIF version is very much lighter than the reference SVG or any of the other formats offered.

Chrome and Edge render the image differently, as does the polyfill that the page uses when the avif pref is disabled.

Also seems to be a big difference in the first image under "Why not loss?" heading.

Quite right. It's quite easy to see in the background of each tile in https://jakearchibald.com/2020/avif-has-landed/demos/compare/?show=team&img=/c/team-good-fe689431.webp

Summary: Gamma of avif images appears → Gamma of avif images appears incorrect

Jon, would you examine this please?

Severity: -- → S3
Flags: needinfo?(jbauman)
Priority: -- → P3
Attached image team-limited-2.2.1.avif

I believe the issue here is that Firefox doesn't yet properly support full-range color. This is a reencoding of the PNG source image but with limited range, and the rendering looks identical to me in Firefox and Chrome.

Here's how I generated the file:

$ avifenc --range limited --cicp 2/2/1  team-good-df0b10e6.png team-limited-2.2.1.avif
Flags: needinfo?(jbauman)
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → DUPLICATE

Oh, and avifenc is part of libavif

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

Attachment

General

Created:
Updated:
Size: