<html>
<head>
<base href="https://bugs.freedesktop.org/">
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - [PATCH] Expose more image modes, add option to select mode in renderer"
href="https://bugs.freedesktop.org/show_bug.cgi?id=105558#c2">Comment # 2</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - [PATCH] Expose more image modes, add option to select mode in renderer"
href="https://bugs.freedesktop.org/show_bug.cgi?id=105558">bug 105558</a>
from <span class="vcard"><a class="email" href="mailto:hbotondzs@gmail.com" title="Zsombor Hollay-Horvath <hbotondzs@gmail.com>"> <span class="fn">Zsombor Hollay-Horvath</span></a>
</span></b>
<pre>I removed the changes from CMakeLists.txt
The calc_bytes_per_row (poppler::image::rgb24) bug was the following: we are
using 4-padded lines. The current version simply multiplies the width by 3, so
that produces distorted images when the output image width isn't a multiply of
4. The version I propose manages to render the pdf correctly with any width.
I attached a test pdf and two renders, one with the original code, one with my
modifications.
On image::save I accidentally exchanged RGB24 with BGR24 in my previous patch,
I fixed that.
My BGR24 saving method also had a bug, that's also fixed.
According to our conversation with Cid, I removed the include of
splash/SplashTypes.h from the public header and added converter functions to
handle image_mode and line_modes both on public and on Splash side.</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>