[cairo-bugs] [Bug 25730] New: png import of 1-bit grayscale does not work

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Sun Dec 20 05:20:36 PST 2009


           Summary: png import of 1-bit grayscale does not work
           Product: cairo
           Version: 1.8.8
          Platform: x86 (IA32)
        OS/Version: Linux (All)
            Status: NEW
          Severity: normal
          Priority: medium
         Component: png functions
        AssignedTo: cworth at cworth.org
        ReportedBy: alois at astro.ch
         QAContact: cairo-bugs at cairographics.org

Created an attachment (id=32205)
 --> (http://bugs.freedesktop.org/attachment.cgi?id=32205)
png file to illustrate problem

When I import 1-bit grayscale PNG images into PDF or Postscript context, the
imported image is shoing garbage. The size is correct, but what I see is a
green and black rectangle instead of the same image.

The linux 'file' command on the image file says:
t409.1bit.png: PNG image data, 685 x 295, 1-bit grayscale, non-interlaced

When I convert the image to a 1-bit colourmap, it works.
The linux 'file' result is
t409.png:      PNG image data, 685 x 295, 1-bit colormap, non-interlaced

Configure bugmail: http://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