Closed Bug 1965813 Opened 3 months ago Closed 3 months ago

Add the possibility to decode jpeg cmyk image coming from pdfs

Categories

(Core :: Audio/Video: Web Codecs, enhancement)

enhancement

Tracking

()

RESOLVED FIXED
140 Branch
Tracking Status
firefox140 --- fixed

People

(Reporter: calixte, Assigned: calixte)

References

(Blocks 1 open bug)

Details

Attachments

(2 files)

Attached file invitation.pdf

Jpeg cmyk images in pdfs have inverted channels.
There are no specific markers which could help to guess if the channels are inverted or not: the only reason why they're inverted is because the image has been embedded in a pdf.
The attached pdf contains an few cmyk jpeg images. Right now we're falling back on pure js jpeg decoder and then we have to apply a cmyk color profile on the pixels in order to get the RGBA images: it's very slow.

Assignee: nobody → cdenizet
Status: NEW → ASSIGNED

I don't know if this is the right approach: maybe adding an option in the ImageDecoderInit dictionary would be better.

Blocks: 1965870
See Also: → 1966024
Pushed by cdenizet@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/48a758441a03 Add the possibility to decode cmyk jpeg images coming from pdf files r=aosmond,necko-reviewers,valentin
Status: ASSIGNED → RESOLVED
Closed: 3 months ago
Resolution: --- → FIXED
Target Milestone: --- → 140 Branch
QA Whiteboard: [qa-triage-done-c141/b140]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: