After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 693428 - bad image resolution (size) on opening some PDF files
bad image resolution (size) on opening some PDF files
Status: RESOLVED OBSOLETE
Product: GIMP
Classification: Other
Component: Plugins
2.8.0
Other All
: Normal minor
: ---
Assigned To: GIMP Bugs
GIMP Bugs
Depends on:
Blocks:
 
 
Reported: 2013-02-08 15:34 UTC by bruno.vasta
Modified: 2018-05-24 13:30 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
PDF file producing this bug (642.93 KB, application/pdf)
2013-02-08 15:34 UTC, bruno.vasta
Details
Screen shot - Gimp import dialog (66.00 KB, image/jpeg)
2013-03-05 11:16 UTC, bruno.vasta
Details
Screen shot - Selection of the whole image after import (324.62 KB, image/jpeg)
2013-03-05 11:19 UTC, bruno.vasta
Details
Testcase : another PDF on wich the problem occurs during import (760.12 KB, application/pdf)
2013-03-05 11:25 UTC, bruno.vasta
Details

Description bruno.vasta 2013-02-08 15:34:13 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.
Comment 1 Michael Natterer 2013-02-21 22:48:32 UTC
Works fine for me in 2.8 and master, please try 2.8.4 and report back.
Comment 2 bruno.vasta 2013-03-05 10:54:22 UTC
Tested on 2.8.2 also, on Ubuntu 12.10, same bug.
Will test on 2.8.4 as soon as possible.
Comment 3 bruno.vasta 2013-03-05 11:15:44 UTC
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.
Comment 4 bruno.vasta 2013-03-05 11:16:54 UTC
Created attachment 238112 [details]
Screen shot - Gimp import dialog
Comment 5 bruno.vasta 2013-03-05 11:19:00 UTC
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)
Comment 6 bruno.vasta 2013-03-05 11:25:50 UTC
Created attachment 238115 [details]
Testcase : another PDF on wich the problem occurs during import
Comment 7 Linux25 2013-03-06 18:34:10 UTC
I have been having this problem since 2.8.  The new plugin for PDF does not work. It always imports at the incorrect resolution.
Comment 8 Sylvain Mora 2013-03-07 10:15:52 UTC
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
Comment 9 Michael Schumacher 2013-03-07 17:33:31 UTC
Does PDF have multiple sizes for a page like Postscript (Page, Bounding box, ...)?
Comment 10 bruno.vasta 2013-03-08 11:13:35 UTC
(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
Comment 11 Michael Schumacher 2013-03-08 14:35:17 UTC
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.
Comment 12 Bart Massey 2014-01-11 19:13:16 UTC
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.
Comment 13 GNOME Infrastructure Team 2018-05-24 13:30:02 UTC
-- 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.