<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - decoder fails on image with YCCK colourspace causing inverted colours when printing from eog"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=93031">93031</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>decoder fails on image with YCCK colourspace causing inverted colours when printing from eog
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>cairo
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Other
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux (All)
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>general
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>chris@chris-wilson.co.uk
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>adyer@yuikee.com.hk
          </td>
        </tr>

        <tr>
          <th>QA Contact</th>
          <td>cairo-bugs@cairographics.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=119966" name="attach_119966" title="problem image, prints with inverted colours from eog viewer">attachment 119966</a> <a href="attachment.cgi?id=119966&action=edit" title="problem image, prints with inverted colours from eog viewer">[details]</a></span>
problem image, prints with inverted colours from eog viewer

See <a href="https://bugzilla.gnome.org/show_bug.cgi?id=758155">https://bugzilla.gnome.org/show_bug.cgi?id=758155</a>
Attached image is displayed normally by the Eye of Gnome (eog) viewer, but is
printed with a dark background and has a dark background in Print Preview.

The same image prints correctly from GIMP.

Reported as eog bug, Felix Riemann responded that the problem was in libcairo:
"libcairo did in fact detect that your file is a CMYK file.
So far so good.

The catch is that your image is not in the "pure" CMYK colorspace but in the
inverted variant that Photoshop writes, called YCCK. This causes the inverted
colors, if the decoder doesn't respect that. This is realized by adding a
special color transform to the image object in the PDF and that is the part
that is missing here.
If I manually insert the necessary command into the PDF it renders correctly.


It would be great if you could report this to the libcairo developers as that
needs to be fixed in libcairo's pdf backend."

OS Ubuntu 14.04.3 LTS
eog Version: 3.10.2-0ubuntu5
libcairo2 Version: 1.13.0~20140204-0ubuntu1.1</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>