LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-06-2021, 07:19 PM   #1
Michael Piziak
Member
 
Registered: Feb 2015
Distribution: Ubuntu 20.04 lts
Posts: 598

Rep: Reputation: 43
Gimp EXIF data lost when exporting


After I do some basic processing, then export (and the box is checked to keep the exif data), the exif data is lost in the resulting created file.

?

I'm using Gimp 2.10.24 a Pentax k-s2 camera

p.s. The exif data is retained if I overwrite. It's just when exporting that it is lost... I can't do a "save as" because the resulting file is not jpg (it's .xcf)


Regards,


Michael
 
Old 10-07-2021, 11:37 AM   #2
Jan K.
Member
 
Registered: Apr 2019
Location: Esbjerg
Distribution: Windows 7...
Posts: 773

Rep: Reputation: 489Reputation: 489Reputation: 489Reputation: 489Reputation: 489
When I saw thread title, "using a Pentax?"

You're not alone... https://docs.gimp.org/2.8/en/gimp-images-out.html

That was many months ago and was probably solved, but scrolling down to bottom, there's this link https://gitlab.gnome.org/GNOME/gimp/-/issues/7308

Perhaps report there?
 
Old 10-07-2021, 05:10 PM   #3
Michael Piziak
Member
 
Registered: Feb 2015
Distribution: Ubuntu 20.04 lts
Posts: 598

Original Poster
Rep: Reputation: 43
Quote:
Originally Posted by Jan K. View Post
When I saw thread title, "using a Pentax?"

You're not alone... https://docs.gimp.org/2.8/en/gimp-images-out.html

That was many months ago and was probably solved, but scrolling down to bottom, there's this link https://gitlab.gnome.org/GNOME/gimp/-/issues/7308

Perhaps report there?

After reading your reply, I thought and ask, are you a fellow Pentaxian?

I read through both url links you supplied. I will report the problem there also...

As of now, the only way to retain the EXIF data is to "overwrite" the original file after I have made my desired post processing adjustments (to the image)...


Regards,

Michael


p.s. for the longest time, I was running the beta version of Gimp, with a flatpak installation (because exif data could not even be retained with the overwrite option of saving. Perhaps I'll install the beta version again and see how it behaves...

Last edited by Michael Piziak; 10-07-2021 at 05:12 PM.
 
Old 10-07-2021, 08:43 PM   #4
Jan K.
Member
 
Registered: Apr 2019
Location: Esbjerg
Distribution: Windows 7...
Posts: 773

Rep: Reputation: 489Reputation: 489Reputation: 489Reputation: 489Reputation: 489
Quote:
Originally Posted by Michael Piziak View Post
After reading your reply, I thought and ask, are you a fellow Pentaxian?
Sorry, no. Nikon user for decades...

But stumbled upon that exif report earlier in a completely unrelated websearch.

The internet is funny that way!
 
Old 10-07-2021, 11:59 PM   #5
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by Jan K. View Post
I wonder why you posted that link. I see no mention of losing EXIF data when exporting - except that GIMP should be compiled with EXIF support. Unlikely, but worth checking out I guess.
Quote:
Originally Posted by Jan K. View Post
As OP did.
They already got a reply with a hint that should be followed up on:
Quote:
Especially exiv2 is important here, since that's where the code for reading the EXIF MakerNotes of specific camera brands is done.
Also standard troubleshooting techniques, like opening the application in a terminal to look for messages or cghecking various logs - all things this long-time LQ member has known for years.

I also wonder what "exif data is retained if I overwrite" means? Overwrite how? By exporting in GIMP?

Details...
 
Old 10-08-2021, 02:20 AM   #6
Guttorm
Senior Member
 
Registered: Dec 2003
Location: Trondheim, Norway
Distribution: Debian and Ubuntu
Posts: 1,453

Rep: Reputation: 447Reputation: 447Reputation: 447Reputation: 447Reputation: 447
I have seen confusion about exif vs IPTC and XMP. Sometimes the metadata is not really exif. So check those boxes too when you export, and see if it works.

A workaround is to use a tool like jhead to copy it from the orginal to the edited version. Like this:
Code:
jhead -te original.jpg edited.jpg
 
1 members found this post helpful.
Old 10-08-2021, 11:36 AM   #7
Jan K.
Member
 
Registered: Apr 2019
Location: Esbjerg
Distribution: Windows 7...
Posts: 773

Rep: Reputation: 489Reputation: 489Reputation: 489Reputation: 489Reputation: 489
Quote:
Originally Posted by ondoho View Post
I wonder why you posted that link. I see no mention of losing EXIF data when exporting - except that GIMP should be compiled with EXIF support. Unlikely, but worth checking out I guess...
Ha!... should've been https://gitlab.gnome.org/GNOME/gimp/-/issues/2253
 
Old 10-08-2021, 11:04 PM   #8
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by Jan K. View Post
Yeah, that one makes much more sense.
I hope OP sees it, reads it, and performs some tests.
It looks like the problem only occurs with JPEGs taken with the camera directly, and not raw images transformed to JPEGs.

That particular issue was closed 11 months ago, with 2 commits referencing it, but I couldn't figure out which GIMP release incorporated the changes.

I did some tests with one of the example images from that issue, and could not reproduce OP's problem (GIMP 2.10.28). However, exiftool outputs a much larger set of metadata (than exiv2), and it changes quite a bit after editing an image in GIMP - it's up to OP to delve deeper into that, and also take Guttorm's reply into account.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
SNAP my ssss this installed gimp and gimp no want to work right 2.10 gimp. BW-userx Linux - Software 1 12-07-2018 01:37 PM
LXer: GIMP Painter And GIMP Paint Studio Transform GIMP Into The Ultimate Painting Tool LXer Syndicated Linux News 0 02-08-2011 05:40 PM
Any command-line tools which can edit EXIF image data? neocookie Linux - Software 1 01-27-2005 11:23 AM
exporting one NFS folder to another NFS and exporting it.... stellarmarine1 Linux - Networking 3 09-20-2004 06:54 AM
gimp (1.3.21) and gimp-perl - need help installing gimp-perl keex Slackware 0 10-22-2003 03:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:09 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration