[cairo-bugs] [Bug 31632] New: cairo 1.10.0 generates wrong PostScript for gray scale JPEG image.

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Mon Nov 15 03:31:26 PST 2010


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

           Summary: cairo 1.10.0 generates wrong PostScript for gray scale
                    JPEG image.
           Product: cairo
           Version: 1.10.0
          Platform: All
        OS/Version: Linux (All)
            Status: NEW
          Severity: normal
          Priority: medium
         Component: postscript backend
        AssignedTo: ajohnson at redneon.com
        ReportedBy: sho at bbr.jp
         QAContact: cairo-bugs at cairographics.org


Created an attachment (id=40280)
 --> (https://bugs.freedesktop.org/attachment.cgi?id=40280)
a PDF file cause this problem

On Fedora 14 Linux, I can't print a PDF includes Gray scale JPEG Image with
evince. Evince uses libcairo to generate PostScript for printing. And I've
found a generated PostScript was wrong.
It includes following code.

/DeviceGray setcolorspace
8 dict dup begin
  /ImageType 1 def
  /Width 180 def
  /Height 139 def
  /BitsPerComponent 8 def
  /Decode [ 0 1 0 1 0 1 ] def
  /DataSource currentfile /ASCII85Decode filter /DCTDecode filter def
  /ImageMatrix [ 1 0 0 -1 0 139 ] def
end

Number of elements in Decode array is wrong when colorspace is /DeviceGray.

I attached a sample PDF and a patch to fix this problem.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the cairo-bugs mailing list