[Poppler-bugs] [Bug 98537] pdftoppm -tiff -gray/-mono generates wrong image

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Wed Nov 2 11:45:33 UTC 2016


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

--- Comment #1 from Adrian Johnson <ajohnson at redneon.com> ---
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.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/poppler-bugs/attachments/20161102/848ed54c/attachment.html>


More information about the Poppler-bugs mailing list