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)
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
Reporter | ||
Comment 1•10 years ago
|
||
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.
Updated•10 years ago
|
Component: Untriaged → PDF Viewer
Comment 2•10 years ago
|
||
This looks fine on FF33 for me. Could you confirm with an updated version?
Flags: needinfo?(robin)
Whiteboard: [pdfjs-f-needinfo]
Working range: http://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=bb35d1b73634&tochange=37f08ddaea48
Fixed by Bug 1025878 - Update pdf.js to version 1.0.370. r=yury
Status: UNCONFIRMED → RESOLVED
Closed: 10 years ago
Depends on: 1025878
Flags: needinfo?(robin)
Resolution: --- → FIXED
Reporter | ||
Comment 4•10 years ago
|
||
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.
Description
•