[Poppler-bugs] [Bug 105614] New: pdfimages miscalculates image PPI for rotated and scaled images (patch provided)
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Tue Mar 20 03:59:21 UTC 2018
https://bugs.freedesktop.org/show_bug.cgi?id=105614
Bug ID: 105614
Summary: pdfimages miscalculates image PPI for rotated and
scaled images (patch provided)
Product: poppler
Version: unspecified
Hardware: Other
OS: All
Status: NEW
Severity: normal
Priority: medium
Component: utils
Assignee: poppler-bugs at lists.freedesktop.org
Reporter: freedesktop.mrbax at spamgourmet.com
Created attachment 138211
--> https://bugs.freedesktop.org/attachment.cgi?id=138211&action=edit
Patch to correct the error
pdfimages miscalculates image PPI for rotated and scaled images
Tested on
https://github.com/angea/PDF101/blob/master/handcoded/111_current-transformation-matrix-ctm.pdf
UNPATCHED
>pdfimages -list 111_current-transformation-matrix-ctm.pdf
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
>pdfimages -list 111_current-transformation-matrix-ctm.pdf
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%
--
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/20180320/5c54553c/attachment.html>
More information about the Poppler-bugs
mailing list