GNOME Bugzilla – Bug 551636
GIMP save corrupts jpg EXIF data
Last modified: 2012-09-28 15:43:04 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
Please add the sample to this bugreport.
Created attachment 118421 [details] JPG saved with GIMP showing EXIF problem
Created attachment 118422 [details] JPG saved with Paint.NET not showing EXIF problem
(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.
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?
(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.
Any changes with GIMP 2.6.x?
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!
(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
*** Bug 579610 has been marked as a duplicate of this bug. ***
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
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.
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
Please try GIMP 2.7.4 and report back, we won't fix 2.6 bugs any longer.
Could you please try to reproduce problem with GIMP 2.7.4 or later version and update the bug report with your findings, tia.
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
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.