Created attachment 138211 [details] [review] 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%
-- GitLab Migration Automatic Message -- This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/poppler/poppler/issues/3.
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.