<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 - pdftoppm -tiff -gray/-mono generates wrong image"
href="https://bugs.freedesktop.org/show_bug.cgi?id=98537">98537</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>pdftoppm -tiff -gray/-mono generates wrong image
</td>
</tr>
<tr>
<th>Product</th>
<td>poppler
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>x86-64 (AMD64)
</td>
</tr>
<tr>
<th>OS</th>
<td>Windows (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>utils
</td>
</tr>
<tr>
<th>Assignee</th>
<td>poppler-bugs@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>ku@digitaldolphins.jp
</td>
</tr></table>
<p>
<div>
<pre>Hi.
pdftoppm -tiff -gray generates horizontally 3x stretched image.
pdftoppm -tiff -mono generates a kind of messed up image.
TiffWriter::writePointers and
TiffWriter::writeRow seem to accept native rowData (1bpp and 8bpp) rather than
24bpp RGB pixel format.
I have fixed it by adding supportNativeMonoRowData to ImgWriter.
My commit/patch is here. This can be used to fix the problem! However the
branch pdftoppm-pdftotif also contains my extra stuff like -singletiff option.
<a href="https://github.com/HiraokaHyperTools/poppler_mirror/commit/6716c91ce2b84ad2b44745e4b5efafd9443fb675">https://github.com/HiraokaHyperTools/poppler_mirror/commit/6716c91ce2b84ad2b44745e4b5efafd9443fb675</a>
kenjiuno</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>