Bug 97612 - [PATCH] Correctly decode Adobe CMYK JPEGs in PDF export
Summary: [PATCH] Correctly decode Adobe CMYK JPEGs in PDF export
Status: RESOLVED FIXED
Alias: None
Product: cairo
Classification: Unclassified
Component: pdf backend (show other bugs)
Version: unspecified
Hardware: Other All
: medium enhancement
Assignee: Adrian Johnson
QA Contact: cairo-bugs mailing list
URL:
Whiteboard:
Keywords:
: 93031 (view as bug list)
Depends on:
Blocks:
 
Reported: 2016-09-06 13:08 UTC by Peter TB Brett
Modified: 2016-09-09 13:10 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments
Patch fixing the bug (3.87 KB, text/plain)
2016-09-06 13:08 UTC, Peter TB Brett
Details

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.