Closed Bug 1074222 Opened 10 years ago Closed 10 years ago

CMYK Jpegs embedded in PDF show the wrong colours in firefox pdf preview.

Categories

(Firefox :: PDF Viewer, defect)

32 Branch
x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: robin, Unassigned)

References

Details

(Whiteboard: [pdfjs-f-needinfo])

Attachments

(2 files)

User Agent: Mozilla/5.0 (Windows NT 5.1; rv:32.0) Gecko/20100101 Firefox/32.0 Build ID: 20140923175406 Steps to reproduce: I created a PDF using ReportLab with an embedded CMYK Jpeg. Actual results: When viewed in firefox preview the colours were wrong. See screenshots upper part. I suspect Firefox is ignoring a /Decode [ 1 0 1 0 1 0 1 0] command in the PDF. Expected results: The acrobat reader shows the correct colours see screenshots lower part
This PDF contains the following startup for the image 5 0 obj << /BitsPerComponent 8 /ColorSpace /DeviceCMYK /Decode [ 1 0 1 0 1 0 1 0 ] /Filter [ /ASCII85Decode /DCTDecode ] /Height 100 /Length 15796 /Subtype /Image /Type /XObject /Width 100 >> If the /Decode [ 1 0 1 0 1 0 1 0 ] is replaced with blanks ie don't reverse the colour values then Acrobat also shows the wrong colours.
Component: Untriaged → PDF Viewer
This looks fine on FF33 for me. Could you confirm with an updated version?
Flags: needinfo?(robin)
Whiteboard: [pdfjs-f-needinfo]
Status: UNCONFIRMED → RESOLVED
Closed: 10 years ago
Depends on: 1025878
Flags: needinfo?(robin)
Resolution: --- → FIXED
I confirm I don't see this reversal on FF33 Beta and that the PDF preview does obey the /Decode array properly. Thanks for the fix.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: