<html>
<head>
<base href="https://bugs.freedesktop.org/">
</head>
<body><span class="vcard"><a class="email" href="mailto:ealloc@gmail.com" title="Allan Haldane <ealloc@gmail.com>"> <span class="fn">Allan Haldane</span></a>
</span> changed
<a class="bz_bug_link
bz_status_NEW "
title="NEW - pdftocairo -pdf inverts image color in this PDF"
href="https://bugs.freedesktop.org/show_bug.cgi?id=105294">bug 105294</a>
<br>
<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>What</th>
<th>Removed</th>
<th>Added</th>
</tr>
<tr>
<td style="text-align:right;">CC</td>
<td>
</td>
<td>ealloc@gmail.com
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - pdftocairo -pdf inverts image color in this PDF"
href="https://bugs.freedesktop.org/show_bug.cgi?id=105294#c4">Comment # 4</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - pdftocairo -pdf inverts image color in this PDF"
href="https://bugs.freedesktop.org/show_bug.cgi?id=105294">bug 105294</a>
from <span class="vcard"><a class="email" href="mailto:ealloc@gmail.com" title="Allan Haldane <ealloc@gmail.com>"> <span class="fn">Allan Haldane</span></a>
</span></b>
<pre>Just to link to the history, this came from bug:
<a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED FIXED - [PATCH] Correctly decode Adobe CMYK JPEGs in PDF export"
href="show_bug.cgi?id=97612">https://bugs.freedesktop.org/show_bug.cgi?id=97612</a>
I tried deleting the line "/Decode [ 1 0 1 0 1 0 1 0 ]" from the pdf, which
that patch added, and confirm that without it the image colors are no longer
inverted.
Here is a stackoverflow discussion of problems with adobe CMYK jpegs, where the
"Decode" fix is suggested: <a href="https://graphicdesign.stackexchange.com/a/15906">https://graphicdesign.stackexchange.com/a/15906</a>
I haven't yet understood what is going on well. It seems possible to me that
there is some kind of double-inversion going on: Maybe cairo adds the Decode
line to invert the jpegs, but otherwise leaves the metadata alone. Then when
you view that generated pdf again using cairo, it inverts twice: Once because
it detects an adobe jpeg, and again because it finds the new Decode line. I
confirm by looking inside the PDF that the generated PDF still has the "Adobe"
header in the jpeg, and also has an additional Decode line.
Also, for me this is a fairly serious bug which affects about half of the PDFs
I try to print in the last couple months, after I upgraded cairo. For me it
makes evince/poppler effectively unusable for printing pdfs.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the QA Contact for the bug.</li>
</ul>
</body>
</html>