GNOME Bugzilla – Bug 693428
bad image resolution (size) on opening some PDF files
Last modified: 2018-05-24 13:30:02 UTC
Created attachment 235516 [details] PDF file producing this bug While opening some PDF files, giving size or depth in the opening dialog box, it appends that the images or layers for multiple pages PDF are not opened in the good size but smaller size. I been able to reproduce this bug with 2 PDF files. I can verify that the PDF is opened in the good size if I use Photoshop or a pdf2png script using ghostscript library. The PDF file I'm submitting produces the problem. Trying to open this file with 75 dpi resolution, in 1360px / 693px produce an image of 1342px / 683px which is not the expected size.
Works fine for me in 2.8 and master, please try 2.8.4 and report back.
Tested on 2.8.2 also, on Ubuntu 12.10, same bug. Will test on 2.8.4 as soon as possible.
Tested on 2.8.4 and same problem (adding an unofficial Gimp repository for Ubuntu 12.10) Adding screen-shots (please notice the different sizes between the import dialog box and the selection of the whole image after import) and testcase file.
Created attachment 238112 [details] Screen shot - Gimp import dialog
Created attachment 238113 [details] Screen shot - Selection of the whole image after import The selection of the whole image is of a different size than the one selected in PDF import dialog (see screenshot attached before)
Created attachment 238115 [details] Testcase : another PDF on wich the problem occurs during import
I have been having this problem since 2.8. The new plugin for PDF does not work. It always imports at the incorrect resolution.
I have the same issue with the second PDF using same value as Bruno Vasta. The PDF size is reduced by 10 pixels. Version : 2.8.2-1ubuntu1 OS : Linux Mint 14 Nadia
Does PDF have multiple sizes for a page like Postscript (Page, Bounding box, ...)?
(In reply to comment #9) > Does PDF have multiple sizes for a page like Postscript (Page, Bounding box, > ...)? For the second PDF I posted as testcase, I have those infos, but to not upload a 33Mo file as attachment for the bug, I posted a version with only 1 page inside the file. That's why infos shows 9 pages while the attachment is a 1 page only PDF. Title: Sans titre-1 Creator: Adobe InDesign CS4 (6.0) Producer: Adobe PDF Library 9.0 CreationDate: Thu Feb 28 16:48:22 2013 ModDate: Thu Feb 28 16:48:52 2013 Tagged: no Form: none Pages: 9 Encrypted: no Page size: 724.488 x 724.488 pts Page rot: 0 MediaBox: 0.00 0.00 724.49 724.49 CropBox: 0.00 0.00 724.49 724.49 BleedBox: 15.00 15.00 709.49 709.49 TrimBox: 29.17 29.17 695.31 695.31 ArtBox: 0.00 0.00 724.49 724.49 File size: 32967629 bytes Optimized: no PDF version: 1.4
Did some testing, and the resulting image sizes correspond to integer resolutions (e.g. 724 pixels when importing with 72 ppi)... Not sure if resolutions like 123,45 pixels per inch make any sense when importing PDF at all, maybe this should be limited to integer values in the UI.
Because PDF is a vector format, you're going to have to honor fractional resolutions to get the image rendered at the right size: the error is cumulative, and can be more than 1% in common situations--kind of a big deal in, for example, CAD applications.
-- GitLab Migration Automatic Message -- This bug has been migrated to GNOME'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.gnome.org/GNOME/gimp/issues/449.