After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 551636 - GIMP save corrupts jpg EXIF data
GIMP save corrupts jpg EXIF data
Status: RESOLVED NOTGNOME
Product: GIMP
Classification: Other
Component: Plugins
2.7.4
Other All
: Normal normal
: ---
Assigned To: GIMP Bugs
GIMP Bugs
: 579610 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2008-09-10 11:16 UTC by john blackmore
Modified: 2012-09-28 15:43 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
JPG saved with GIMP showing EXIF problem (719.20 KB, image/jpeg)
2008-09-10 12:50 UTC, john blackmore
Details
JPG saved with Paint.NET not showing EXIF problem (511.10 KB, image/jpeg)
2008-09-10 12:51 UTC, john blackmore
Details

Description john blackmore 2008-09-10 11:16:25 UTC
Please describe the problem:
Opening a jpg file and then re-saving causes a corruption of the EXIF data.

Although most graphics programs can handle the problem it causes Olympus Master 2 to exit without any error.

PhotoME shows the following errors:
5 problems were found in the metadata of this file.
1.	Camera tag Manufacturer notes and Manufacturer notes tag Equipment IFD Pointer refer to the same IFD (Manufacturer notes)
2.	Camera tag Manufacturer notes and Manufacturer notes tag Camera Settings IFD Pointer refer to the same IFD (Manufacturer notes)
3.	Camera tag Manufacturer notes and Manufacturer notes tag RAW Development IFD Pointer refer to the same IFD (Manufacturer notes)
4.	Camera tag Manufacturer notes and Manufacturer notes tag Image Processing IFD Pointer refer to the same IFD (Manufacturer notes)
5.	Camera tag Manufacturer notes and Manufacturer notes tag Debug Info IFD Pointer refer to the same IFD (Manufacturer notes)
Two IFD pointers refer to the same address.
Possible reasons:
• The metadata may have been damaged by other software

Steps to reproduce:
1. Open an Olympus jpg file with GIMP
2. Save as a new file

Actual results:
1. Try opening the directory containing the GIMP-saved file in Olympus Master 2 (v2.06). The program starts to read the files and when it gets to the GIMP-saved file the program exits.
2. Open the GIMP-saved jpg file in PhotoME http://www.photome.de/ 
3. The original file will open without problems in Olympus Master 2 and will not show any errors in PhotoME


Expected results:
The file should open in Olympus Master 2 and not show errors in PhotoME.
I tried the same actions with Paint.NET and did not have any problems.

Does this happen every time?
Yes

Other information:
I have the sample GIMP and Paint.NET files
Comment 1 tobias 2008-09-10 12:25:08 UTC
Please add the sample to this bugreport.
Comment 2 john blackmore 2008-09-10 12:50:17 UTC
Created attachment 118421 [details]
JPG saved with GIMP showing EXIF problem
Comment 3 john blackmore 2008-09-10 12:51:43 UTC
Created attachment 118422 [details]
JPG saved with Paint.NET not showing EXIF problem
Comment 4 john blackmore 2008-09-10 13:19:13 UTC
(In reply to comment #3)
> Created an attachment (id=118422) [edit]
> JPG saved with Paint.NET not showing EXIF problem
> 

I should have added the original camera file was about 6Mb so I actually resized both of the GIMP- and Paint.NET-saved files I attached from the 3648x2736 of the original to 1216x912 to allow them to be uploaded.

However the same problem was shown on the original file when it was opened in GIMP and the just saved without any other manipulation.

Comment 5 Sven Neumann 2008-09-17 21:12:47 UTC
The file saved with Paint.NET also has invalid Exif data (as reported by exiv2). libexif is known to have problems with Olympus MakerNotes. What version of libexif are you using?
Comment 6 john blackmore 2008-09-18 06:37:52 UTC
(In reply to comment #5)
> The file saved with Paint.NET also has invalid Exif data (as reported by
> exiv2). libexif is known to have problems with Olympus MakerNotes. What version
> of libexif are you using?
> 

GIMP 2.4.6 updated from earlier versions. The \bin directory contains both libexif-9.dll and libexif-12.dll. 
Comment 7 Michael Schumacher 2008-12-17 17:28:54 UTC
Any changes with GIMP 2.6.x?
Comment 8 Michael Schumacher 2009-02-26 15:09:44 UTC
Closing this bug report as no further information has been provided. Please feel free to reopen this bug if you can provide the information asked for.
Thanks!
Comment 9 john blackmore 2009-02-26 17:42:27 UTC
(In reply to comment #8)
> Closing this bug report as no further information has been provided. Please
> feel free to reopen this bug if you can provide the information asked for.
> Thanks!
> 
I have just rechecked using GIMP 2.6.5 and I get the following errors

5 problems were found in the metadata of this file.
1. Camera tag Manufacturer notes and Manufacturer notes tag Equipment IFD Pointer refer to the same IFD (Manufacturer notes)
Two IFD pointers refer to the same address.
Possible reasons:• The metadata may have been damaged by other software
2. Camera tag Manufacturer notes and Manufacturer notes tag Camera Settings IFD Pointer refer to the same IFD (Manufacturer notes)
Two IFD pointers refer to the same address.
Possible reasons:• The metadata may have been damaged by other software
3. Camera tag Manufacturer notes and Manufacturer notes tag RAW Development IFD Pointer refer to the same IFD (Manufacturer notes)
Two IFD pointers refer to the same address.
Possible reasons:• The metadata may have been damaged by other software
4. Camera tag Manufacturer notes and Manufacturer notes tag Image Processing IFD Pointer refer to the same IFD (Manufacturer notes)
Two IFD pointers refer to the same address.
Possible reasons:• The metadata may have been damaged by other software
5. Camera tag Manufacturer notes and Manufacturer notes tag Debug Info IFD Pointer refer to the same IFD (Manufacturer notes)
Two IFD pointers refer to the same address.
Possible reasons:• The metadata may have been damaged by other software

Comment 10 Michael Schumacher 2009-04-22 08:09:17 UTC
*** Bug 579610 has been marked as a duplicate of this bug. ***
Comment 11 Zilvinas Jonaitis 2009-05-07 20:13:32 UTC
Hi

I got exactly the same problem with GIMP 2.6.6 (under Windows XP Pro 32-bit)

Steps to reproduce:

1. Open Olympus camera JPEG file in GIMP (my camera is E-3 v1.4).
2. "Save As" JPEG file with "Advanced Options" flag "Save EXIF data" checked.
3. Trying to locate saved file in Olympus Master 2.11 closes OM2 unexpectedly.

If JPEG is saved without "Save EXIF data" flag checked, OM2 opens saved file correctly.

Regards,
Zilvinas
Comment 12 garcia 2010-09-27 23:30:00 UTC
Problem still present in Gimp 2.6.10, Linux version.

I can observe the problem when trying to query a .JPG picture metadata with exiv2.

The error messages (about corrupted IDF fields) don't show up with the original Nikon .JPG, but on the same picture after having been opened and saved (w/o any changes) in Gimp:


$ gimp -version
GNU Image Manipulation Program version 2.6.10
$ exiv2 -pc DSD_1695.JPG 
                    # No output here, file has no comment
$ gimp DSD_1695.JPG # open and save without any changes to DSD_1695-GIMP.JPG
$ exiv2 -pc DSD_1695.jpg 
Error: Directory NikonPreview with 8224 entries considered invalid; not read.
Comment 13 Michael Schumacher 2010-09-28 07:48:14 UTC
There's a bug in the libexif tracker about problems with MakerNotes:

http://sourceforge.net/tracker/?func=detail&aid=2660931&group_id=12272&atid=112272
Comment 14 Michael Natterer 2012-01-09 00:33:58 UTC
Please try GIMP 2.7.4 and report back, we won't fix 2.6 bugs any longer.
Comment 15 Akhil Laddha 2012-02-22 09:27:14 UTC
Could you please try to reproduce problem with GIMP 2.7.4 or later version and update the bug report with your findings, tia.
Comment 16 john blackmore 2012-02-22 10:43:10 UTC
I have just tried using GIMP 2.7.5 portable (WinXP) and get these errors:

5 problems were found in the metadata of this file.

5.	Camera tag Manufacturer notes and Manufacturer notes tag Equipment IFD Pointer refer to the same IFD (Manufacturer notes)

Two IFD pointers refer to the same address.
Possible reasons:
• The metadata may have been damaged by other software

	5.	Camera tag Manufacturer notes and Manufacturer notes tag Camera Settings IFD Pointer refer to the same IFD (Manufacturer notes)

Two IFD pointers refer to the same address.
Possible reasons:
• The metadata may have been damaged by other software

5. Camera tag Manufacturer notes and Manufacturer notes tag RAW Development IFD Pointer refer to the same IFD (Manufacturer notes)

Two IFD pointers refer to the same address.
Possible reasons:
• The metadata may have been damaged by other software

5. Camera tag Manufacturer notes and Manufacturer notes tag Image Processing IFD Pointer refer to the same IFD (Manufacturer notes)

Two IFD pointers refer to the same address.
Possible reasons:
• The metadata may have been damaged by other software

5. Camera tag Manufacturer notes and Manufacturer notes tag Debug Info IFD Pointer refer to the same IFD (Manufacturer notes)

Two IFD pointers refer to the same address.
Possible reasons:
• The metadata may have been damaged by other software

I do not get the errors using Paint.NET v3.5.10 or PhotoFiltre v7.0.0
Comment 17 Max Mustermann 2012-09-28 15:43:04 UTC
Correcting OS field with respect to comment #12.

Today I tried to reproduce this with GIMP 2.8.2 on Mac (native build) and Win 7, 32 bit, but everything is fine. Olympus Master 2.2. crashed again on the - faulty - image from comment #2, but not on other JPEG images with manufacturer notes and touched by GIMP.
To me this looks very similar to bug #310499. The problem there was a bug in libexif. Because of this closing it as NOTGNOME.