<html>
    <head>
      <base href="https://bugs.freedesktop.org/">
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - pdftoppm -tiff -gray/-mono generates wrong image"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=98537#c1">Comment # 1</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - pdftoppm -tiff -gray/-mono generates wrong image"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=98537">bug 98537</a>
              from <span class="vcard"><a class="email" href="mailto:ajohnson@redneon.com" title="Adrian Johnson <ajohnson@redneon.com>"> <span class="fn">Adrian Johnson</span></a>
</span></b>
        <pre>The format parameter to the image writers defines the pixel format so there is
no need to add the supportNativeMonoRowData() function.

I would suggest adding the data:

 SplashColorMode imageWriterFormat;

to SplashBitmap.h.

In writeImgFile() (line 353), set imageWriterFormat to the format to supply to
writeRow().

ie splashModeMono8 for TiffWriter(TiffWriter::GRAY),
   splashModeMono1 for TiffWriter(TiffWriter::MONO), and 
   splashModeRGB8 for everything else.

Then use imageWriterFormat in writeImgFile() (line 620) to determine the data
format to use for mode = splashModeMono8 or splashModeMono1.</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>