<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 - pdfimages miscalculates image PPI for rotated and scaled images (patch provided)"
href="https://bugs.freedesktop.org/show_bug.cgi?id=105614">105614</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>pdfimages miscalculates image PPI for rotated and scaled images (patch provided)
</td>
</tr>
<tr>
<th>Product</th>
<td>poppler
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>Other
</td>
</tr>
<tr>
<th>OS</th>
<td>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>freedesktop.mrbax@spamgourmet.com
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=138211" name="attach_138211" title="Patch to correct the error">attachment 138211</a> <a href="attachment.cgi?id=138211&action=edit" title="Patch to correct the error">[details]</a></span> <a href='page.cgi?id=splinter.html&bug=105614&attachment=138211'>[review]</a>
Patch to correct the error
pdfimages miscalculates image PPI for rotated and scaled images
Tested on
<a href="https://github.com/angea/PDF101/blob/master/handcoded/111_current-transformation-matrix-ctm.pdf">https://github.com/angea/PDF101/blob/master/handcoded/111_current-transformation-matrix-ctm.pdf</a>
UNPATCHED
<span class="quote">>pdfimages -list 111_current-transformation-matrix-ctm.pdf</span >
page num type width height color comp bpc enc interp object ID x-ppi
y-ppi size ratio
--------------------------------------------------------------------------------------------
1 0 image 2 2 rgb 3 8 image no 5 0 4
4 13B 108%
1 1 image 2 2 rgb 3 8 image no 5 0 5
3 13B 108%
1 2 image 2 2 rgb 3 8 image no 5 0 3
5 13B 108%
1 3 image 2 2 rgb 3 8 image no 5 0 6
3 13B 108%
1 4 image 2 2 rgb 3 8 image no 5 0 3
10 13B 108%
1 5 image 2 2 rgb 3 8 image no 5 0 4
72000 13B 108%
1 6 image 2 2 rgb 3 8 image no 5 0 4
2 13B 108%
1 7 image 2 2 rgb 3 8 image no 5 0 2
4 13B 108%
1 8 image 2 2 rgb 3 8 image no 5 0 14401
1 13B 108%
1 9 image 2 2 rgb 3 8 image no 5 0 1
2 13B 108%
1 10 image 2 2 rgb 3 8 image no 5 0 0.950
4 13B 108%
1 11 image 2 2 rgb 3 8 image no 5 0 4
0.950 13B 108%
1 12 image 2 2 rgb 3 8 image no 5 0 0.950
4 13B 108%
1 13 image 2 2 rgb 3 8 image no 5 0 1
4 13B 108%
1 14 image 2 2 rgb 3 8 image no 5 0 0.950
4 13B 108%
1 15 image 2 2 rgb 3 8 image no 5 0 0.950
4 13B 108%
1 16 image 2 2 rgb 3 8 image no 5 0 4
0.950 13B 108%
PATCHED
<span class="quote">>pdfimages -list 111_current-transformation-matrix-ctm.pdf</span >
page num type width height color comp bpc enc interp object ID x-ppi
y-ppi size ratio
--------------------------------------------------------------------------------------------
1 0 image 2 2 rgb 3 8 image no 5 0 4
4 13B 108%
1 1 image 2 2 rgb 3 8 image no 5 0 5
3 13B 108%
1 2 image 2 2 rgb 3 8 image no 5 0 3
5 13B 108%
1 3 image 2 2 rgb 3 8 image no 5 0 4
4 13B 108%
1 4 image 2 2 rgb 3 8 image no 5 0 4
4 13B 108%
1 5 image 2 2 rgb 3 8 image no 5 0 3
4 13B 108%
1 6 image 2 2 rgb 3 8 image no 5 0 3
4 13B 108%
1 7 image 2 2 rgb 3 8 image no 5 0 4
3 13B 108%
1 8 image 2 2 rgb 3 8 image no 5 0 0.720
0.509 13B 108%
1 9 image 2 2 rgb 3 8 image no 5 0 0.720
0.624 13B 108%
1 10 image 2 2 rgb 3 8 image no 5 0 0.450
4 13B 108%
1 11 image 2 2 rgb 3 8 image no 5 0 4
0.450 13B 108%
1 12 image 2 2 rgb 3 8 image no 5 0 0.450
4 13B 108%
1 13 image 2 2 rgb 3 8 image no 5 0 0.600
4 13B 108%
1 14 image 2 2 rgb 3 8 image no 5 0 0.450
4 13B 108%
1 15 image 2 2 rgb 3 8 image no 5 0 0.450
4 13B 108%
1 16 image 2 2 rgb 3 8 image no 5 0 4
0.450 13B 108%</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>