Gimp-Forum.net
Exported jpg different than what GIMP shows - Printable Version

+- Gimp-Forum.net (https://www.gimp-forum.net)
+-- Forum: GIMP (https://www.gimp-forum.net/Forum-GIMP)
+--- Forum: General questions (https://www.gimp-forum.net/Forum-General-questions)
+--- Thread: Exported jpg different than what GIMP shows (/Thread-Exported-jpg-different-than-what-GIMP-shows)



Exported jpg different than what GIMP shows - Sygon_Paul - 03-12-2025

Hello! I spent the last few hours adding an alpha channel and removing the bordering white from an image. When I exported in GIMP as a jpg, the end file still has the white. I do not know enough to tell if this is a jpg issue, a GIMP issue, or a user (me) issue.

If this is an issue with jpg files, how can I work around this, as I need jpg? I can try other image formats, but would prefer jpg because LibreOffice Writer doesn't like png format.

I am using GIMP 2.10.38 on Windows 11.

Attached is the exported jpg file. I can't seem to be able to attach a second image, so I will attempt to reply with that.


RE: Exported jpg different than what GIMP shows - programmer_ceds - 03-12-2025

(03-12-2025, 09:32 AM)Sygon_Paul Wrote: Hello! I spent the last few hours adding an alpha channel and removing the bordering white from an image. When I exported in GIMP as a jpg, the end file still has the white. I do not know enough to tell if this is a jpg issue, a GIMP issue, or a user (me) issue.

If this is an issue with jpg files, how can I work around this, as I need jpg? I can try other image formats, but would prefer jpg because LibreOffice Writer doesn't like png format.

I am using GIMP 2.10.38 on Windows 11.

Attached is the exported jpg file. I can't seem to be able to attach a second image, so I will attempt to reply with that.

Are there any transparent areas in your image? If so GIMP will save these as the background colour when you export to jpg.


RE: Exported jpg different than what GIMP shows - Ofnuts - 03-12-2025

The Jpeg format doesn't support transparency, plain and simple. This is a format restriction, not a Gimp one.  When you export to Jpeg, transparent parts are replaced/filled by the background color.

No problem using PNGs with LO writer (24.2.7) though... What version are you using?


RE: Exported jpg different than what GIMP shows - rich2005 - 03-12-2025

Same as other posts: Export image formats that support transparency:  png / tif /psd

LO version 7.6

[attachment=13195]


RE: Exported jpg different than what GIMP shows - Sygon_Paul - 03-12-2025

Thank you for the replies. About two hours after I asked, I discovered that jpg doesn't support transparency. I also learned I was doing something wrong in LibreOffice, and I can use png files. It wasn't wasted time, as I discovered a few tools in GIMP to remove the white box frame behind the image. Unfortunately, those tools washed out some white in the main part, so I removed the white background by hand.

There may be a better idea, but what I have now is working as intended, even if it took me three and a half hours.


RE: Exported jpg different than what GIMP shows - Ofnuts - 03-13-2025

(03-12-2025, 10:46 PM)Sygon_Paul Wrote: GIMP to remove the white box frame behind the image. Unfortunately, those tools washed out some white in the main part, so I removed the white background by hand.

Some reading: Background removal or replacement on text, logos and other computer graphics


RE: Exported jpg different than what GIMP shows - rich2005 - 03-13-2025

(03-12-2025, 10:46 PM)Sygon_Paul Wrote: Thank you for the replies. About two hours after I asked, I discovered that jpg doesn't support transparency. I also learned I was doing something wrong in LibreOffice, and I can use png files. It wasn't wasted time, as I discovered a few tools in GIMP to remove the white box frame behind the image. Unfortunately, those tools washed out some white in the main part, so I removed the white background by hand.

There may be a better idea, but what I have now is working as intended, even if it took me three and a half hours.

As you say, not a waste of time. You have learned something, there is usually more than one way for anything in Gimp. That is one of its strengths. Far better that some on-line site where you get what you are given and learn nothing.

Using your jpeg image, I did find that the usual color-to-alpha  did leave some compression artifacts, so on to the next method widely used. - Fuzzy Select. All depends on the threshold value and is made visible using the threshold mask option.
example:  https://i.imgur.com/FOZI8j3.mp4 about 40 seconds.

The main thing is avoid that white border that plagues new users (see reddit gimp pages Wink ) and keep experimenting.