[cairo-bugs] [Bug 97612] New: [PATCH] Correctly decode Adobe CMYK JPEGs in PDF export

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Tue Sep 6 13:08:28 UTC 2016


https://bugs.freedesktop.org/show_bug.cgi?id=97612

            Bug ID: 97612
           Summary: [PATCH] Correctly decode Adobe CMYK JPEGs in PDF
                    export
           Product: cairo
           Version: unspecified
          Hardware: Other
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: medium
         Component: pdf backend
          Assignee: ajohnson at redneon.com
          Reporter: peter at peter-b.co.uk
        QA Contact: cairo-bugs at cairographics.org

Created attachment 126243
  --> https://bugs.freedesktop.org/attachment.cgi?id=126243&action=edit
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.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.cairographics.org/archives/cairo-bugs/attachments/20160906/d9b1233f/attachment.html>


More information about the cairo-bugs mailing list