Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Exported jpg different than what GIMP shows
#1
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.


Attached Files Thumbnail(s)
   
Reply
#2
(Yesterday, 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.
Reply
#3
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?
Reply
#4
Same as other posts: Export image formats that support transparency:  png / tif /psd

LO version 7.6

   
Reply
#5
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.
Reply
#6
(10 hours ago)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
Reply
#7
(10 hours ago)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.
Reply


Forum Jump: