2

Let us say that I have a 600x600 pixels picture and I want to create a .png file with it that is 6x6 cm in size. What I do is to set the following in "Image->Scale image":

enter image description here

I can check in "Image->Print Size" that my settings seem to be correct, since it tells that the image is 6x6 cm big:

enter image description here

If I export the image as a .pdf file, my pdf viewer (Evince) or other programs (like Inkscape) show it with the appropriate dimensions, namely 6x6 cm. However, if I export it as a .png file, the dimensions change to approximately 17x17 cm. Why does this happen and how can I solve it?

EDIT: the "Export As" options that I use are the default ones, where the "Save resolution" box is checked.

7
  • Do you have "Save Resolution" checked in the PNG export window?
    – Cai
    May 4, 2016 at 12:22
  • Yes (added in EDIT).
    – Godoy
    May 4, 2016 at 12:29
  • 1
    Where exactly is the PNG showing dimensions of 17x17cm? If you open it back in GIMP what resolution does it show?
    – Cai
    May 4, 2016 at 12:32
  • The resolution that it shows is the same as I set as an input (600x600 pixels and 100 pixels/cm). So far, so good. However, as I say, when I open the .png image with other programs (Inkscape, Evince), it is 17x17 cm in size.
    – Godoy
    May 4, 2016 at 13:21
  • 1
    I have checked the resolution of the .png image with another program (ImageMagick, as indicated here), and the result I get is the correct one: 600x600 pixels and 100 pixels/cm. Thus, the problem must be that both Evince and Inkscape open the image wrong. It is strange that they open the .pdf images perfectly well, though. Still confused about this issue.
    – Godoy
    May 4, 2016 at 14:04

1 Answer 1

2

From the Inkscape wiki FAQ:

There is a limitation in the way Inkscape imports raster/bitmap images (e.g JPEG, PNG, TIFF images): it cannot read the image resolution. Inkscape assumes a 1-to-1 relation at 90dpi, so any imported image with a different resolution will appear to be scaled.

That explains the difference in size you are seeing:

600px at 90PPI = 16.93cm

I'm assuming there is a similar problem in Evince.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.