Bug 97612

Summary: [PATCH] Correctly decode Adobe CMYK JPEGs in PDF export
Product: cairo Reporter: Peter TB Brett <peter>
Component: pdf backendAssignee: Adrian Johnson <ajohnson>
Status: RESOLVED FIXED QA Contact: cairo-bugs mailing list <cairo-bugs>
Severity: enhancement    
Priority: medium CC: adyer
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments: Patch fixing the bug

Description Peter TB Brett 2016-09-06 13:08:28 UTC
Created attachment 126243 [details]
Patch fixing the bug

We've been carrying this patch downstream for quite a while, and we
have decided to try and get it integrated upstream since it seems
pretty generally useful.  It applies cleanly against git "master".


Adobe PhotoShop generates CMYK JPEG files with inverted CMYK.  When a
JPEG file with this format is included in a PDF file, a `/Decode`
array must be included to convert to "normal" CMYK.

These JPEG files can be detected via the presence of the APP14 "Adobe"
marker.  However, PDF viewers are not required to detect and handle
this private marker, so it must be detected and handled (by adding a
`/Decode`) by the PDF generator.
Comment 2 Adrian Johnson 2016-09-09 13:10:52 UTC
*** Bug 93031 has been marked as a duplicate of this bug. ***

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.