Ask all general Gimp related questions here
Post a reply

300ppi automatically changes to 72ppi when exported

Mon Feb 10, 2020 5:07 am

GIMP Version: 2.8.14
Operating System: Windows
GIMP Experience: Intermediate Level



I just updated to the 2.10.14 version. I opened an .xcf file I had saved from a few weeks ago, set at 300ppi. I exported it as a .jpg file. But when I opened the jpg, the resolution had automatically changed to 72ppi. I tested it out a few times trying different things to see if I could get it to stay at 300. But nothing worked. On the previous version, once I exported, the resolution remained the same as it was set in the .xcf. I have been looking up the issue and I found a forum with a few different users experiencing the same problem. The posts had been marked as "Solved." I went to see the solution and what I can do to fix it....but I have NO CLUE what this person is saying. I can't even determine if his answer was saying it was a solution or if I am just out of luck! Is there anyone here that can help decipher what this guy says are the steps I need to fix this problem? I am extremely frustrated right now. I have been working on this for hours, and I was supposed to email a customer his files earlier tonight & I can't figure this out. Here is a copy of what the guy on the other forum said:


commit e7478071e8fdc05f8e292fa37efd38b2b8b18969 (HEAD -> gimp-2-10, origin/gimp-2-10)
Date: Fri Nov 8 13:40:12 2019 +0100

Issue #4194: resolution passes from 300ppi to 72ppi after saving.

We are running gimp_image_set_imported_file() when saving, with NULL to
drop the tie with the imported file. Let's only change the default
resolutions when we actually set an imported file.

Also set the `resolution_set` flag even when it doesn't change the
current values (hence no undo or signals), for instance setting from 300
to 300 PPI. In such case, even though nothing changes, the resolution
has to still be considered as explicitly set.

In the reporter case, any one of these 2 fixes is enough.
See also commit fef9b1d2a3 (set to 72 PPI as default for imported files
only) and commit a8f552da2fb (set imported file to NULL).

(cherry picked from commit 417bf199c82481e85188d72862b70f85113e5fb7)

Re: 300ppi automatically changes to 72ppi when exported

Mon Feb 10, 2020 5:35 am

This says that the problem is solved in the source code. But it will be published in 2.10.16.

As far as I know the problem occurs when you open. In other words, your 300DPI file on disk end up as a 72DPI image in Gimp. But if you change that back to 300DPI (Image>Print size) and export, the exported JPEG is at 300DPI (but you have to use another app if you want to check).

The problem appeared in 2.10.14, so it you go back to 2.10.12 it should not be there.

Re: 300ppi automatically changes to 72ppi when exported

Sat Oct 29, 2022 7:41 pm

i am on a mac and just installed 2.10.32

i try to export at 300 dpi and it comes in at 72. have tried the print size and it is set to the proper size and 300 dpi. does anyone know a way to export to 300 dpi

Re: 300ppi automatically changes to 72ppi when exported

Sun Oct 30, 2022 3:23 am

How, do you export? What file type? There used to be a bug like this, but it has been fixed a couple of releases ago.
Post a reply