[cairo] [Regression in 1.15] pdftocairo -pdf inverts image color in this PDF (#105294)

Bryce Harrington bryce at bryceharrington.org
Thu Jun 7 23:44:10 UTC 2018


Has anyone had a chance to look into this?  Is a proper fix feasible
within a couple weeks (before I do the next 1.15 snapshot)?  If it's not
feasible and a revert has to be done, would one of you like to take care
of that or should I handle it?  I'll try to revisit this issue again
before finalizing the snapshot, at least to follow up with the revert if
nothing else is possible.

Thanks,
Bryce

On Tue, May 15, 2018 at 07:27:38PM +0200, Paul Menzel wrote:
> Dear Peter, dear Adrian,
> 
> 
> As reported in bug #105294 [1], the commit b207a932a (Correctly decode Adobe
> CMYK JPEGs in PDF export) [2] with the description below cause a regression
> that images in PDFs are inverted.
> 
> >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.
> 
> Most users are affected wanting to print PDFs created by Adobe Photoshop
> causing the prints to be unusable. With the commit reverted, the printout is
> fine.
> 
> Do you know of a fix or should the commit be reverted for now?
> 
> 
> Kind regards,
> 
> Paul
> 
> 
> [1] https://bugs.freedesktop.org/show_bug.cgi?id=105294
> [2] https://cgit.freedesktop.org/cairo/commit/?id=b207a932a2d3740984319dffd58a0791580597c
> 



> -- 
> cairo mailing list
> cairo at cairographics.org
> https://lists.cairographics.org/mailman/listinfo/cairo



More information about the cairo mailing list