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 777180 - Pdf export seems to use wrong ppi setting
Pdf export seems to use wrong ppi setting
Status: RESOLVED OBSOLETE
Product: GIMP
Classification: Other
Component: Plugins
2.8.18
Other Windows
: Normal minor
: ---
Assigned To: GIMP Bugs
GIMP Bugs
Depends on:
Blocks:
 
 
Reported: 2017-01-12 16:54 UTC by Simon Müller
Modified: 2018-04-18 14:07 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Simple test case - 100x100 pixels and 42 PPI (37.81 KB, image/x-xcf)
2017-06-14 08:17 UTC, Michael Schumacher
Details
Test result (2.76 KB, application/pdf)
2017-06-14 08:19 UTC, Michael Schumacher
Details

Description Simon Müller 2017-01-12 16:54:46 UTC
When you export an image to pdf, it seems to be saved with a wrong ppi value. Various PDF-Readers and Gimp itself interpret the pdf as if the image was bigger in size and had a higher ppi value assigned than what was originally exported. 

Steps to reproduce:

1. Open Gimp, create new empty image with standard dimensions (640x400px@72ppi)
2. Export this newly created image as pdf 
3. Open the exported pdf with gimp again -> The pdf import dialog defaults to a ppi value of 100 and suggests a size of 888x555px (sometimes 889x556px) instead of the expected 640x400px and 72ppi. PDF viewers like PDF-XChange Editor or SumatraPDF also show an image size of 888x555px.

This looks like it could be related to bug 765166 .
Comment 1 Michael Schumacher 2017-01-23 10:49:07 UTC
I'm not even sure if the4 PDF import does try to get any PPI value from the imported file.
Comment 2 Michael Schumacher 2017-06-14 08:17:51 UTC
Created attachment 353732 [details]
Simple test case - 100x100 pixels and 42 PPI
Comment 3 Michael Schumacher 2017-06-14 08:19:31 UTC
Created attachment 353733 [details]
Test result

Both Adobe Reader and Nuance PDF converter agree on a size of 2.38 inches or 60.48 mm.
Comment 4 Michael Schumacher 2017-09-01 19:46:47 UTC
So I assume the issue is just the import, as described in e.g. bug 781604.
Comment 5 Michael Schumacher 2018-04-18 08:18:00 UTC
Simon, can you test with the attached result and see what other viewers/readers are showing?
Comment 6 Simon Müller 2018-04-18 14:07:10 UTC
Just tested it and all of them give the same, correct results. 

PDF-XChange:
image: 100px; page size: 60.5mm

SumatraPDF:
image: 100px; page size: 60.5mm

Adobe Acrobat Reader DC:
image: 100px; page size: 60.5mm

Also I did some more testing with the steps to reproduce I gave above - and everything worked as expected. So I guess this report can be closed.