Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

exiv2 0.28 breaks gimp jpeg metadata export #2670

Open
rouelle opened this issue Jun 30, 2023 · 8 comments
Open

exiv2 0.28 breaks gimp jpeg metadata export #2670

rouelle opened this issue Jun 30, 2023 · 8 comments

Comments

@rouelle
Copy link

rouelle commented Jun 30, 2023

Describe the bug

I'm using Gnome on Arch Linux. Since exiv2 (0.27.6-2 -> 0.28.0-1 -> 0.28.0-2 -> 0.28.0-3) was upgraded to 0.28.0-x Gimp is not able anymore to export metadata from a jpeg file opened, modified and re-saved. A window stating "Message Image JPEG run: saving metadata failed: Failed to write image" appears and the file is saved without metadata.

geeqie and gwenview also crashed since exiv2 0.28; see https://bbs.archlinux.org/viewtopic.php?id=286369

To Reproduce

Steps to reproduce the behavior:

  1. Open a jpeg file in Gimp, edit the file, save the file and the metadata are lost with a window saying so.
  2. Strangely a jpeg from a cell phone is saved correctly with it's metadata, but a jpeg from a camera (like Sony DSC-HX80) has no metadata saved. I attached two files to test (explanatory file name).
  3. Using Arch Linux, exiv2 packages 0.28.0-1, 0.28.0-2, 0.28.0-3; see https://archlinux.org/packages/extra/x86_64/exiv2/ (were upgraded 3 times).

Expected behavior

exiv2 0.27 has no problem neither exporting jpeg metadata nor crashing geeqie and gwenview

Desktop (please complete the following information):

Additional context

You may test with these two jpeg files.
jpeg_from_camera
jpeg_from_cellphone

@rouelle rouelle added the bug label Jun 30, 2023
@kmilos
Copy link
Collaborator

kmilos commented Jul 2, 2023

Duplicate of #2638

@kmilos kmilos marked this as a duplicate of #2638 Jul 2, 2023
@rouelle
Copy link
Author

rouelle commented Jul 2, 2023

The Geeqie part may be a duplicate but Gimp being unable to export metadata of certain jpeg from a camera is not...

@kevinbackhouse
Copy link
Collaborator

@rouelle: it would be helpful if you could provide a stack trace which shows where the problem is in exiv2.

@rouelle
Copy link
Author

rouelle commented Jul 3, 2023

I first checked in https://wiki.archlinux.org/title/Debugging/Getting_traces to get what you asked me for.

Running gdb gives me 612M of data in ~/.cache/debuginfod_client. I scanned the data looking for files containing the string "exiv" and in subdir of debuginfod_client that were modified today 2023-07-03 around 09:26 when I opened Gimp and tried to save the loaded 4:3 image from the Sony camera (the window saying that the metadata were not saved appeared).

I compressed the resulting debuginfo files in a zip archive (I renamed the 4 different debuginfo to distinguish them).

Hope that will be usefull...
debuginfo-.zip

@kmilos
Copy link
Collaborator

kmilos commented Apr 2, 2024

I think this can be closed now?

@rouelle
Copy link
Author

rouelle commented Apr 3, 2024

Well, since I opened the bug nothing has changed, I'm using exiv2 0.28.2-3 on Arch Linux. Exporting from gimp 2.10.36-5 still miss all exif metadata. So, since last year, I export my metadata with cli command:

exiftool -tagsfromfile %f.jpg -ext jpg -overwrite_original ~/Images/bla-bla-bla-dir

I'm curious to know if I'm alone with this bug? If so, I'll close it as there is a workaround even if it is not graceful...
Only the export of metadata doesn't work, geeqie and gwenview doesn't crash anymore.

@kmilos
Copy link
Collaborator

kmilos commented Apr 3, 2024

But the crashes are gone? We can at least update the issue title then?

As far as the GIMP export goes - could be also a bug on their side, could be in gexiv2... No idea how to narrow it down yet, sorry.

@kmilos kmilos changed the title exiv2 0.28 breaks gimp jpeg metadata export and crashes geeqie and gwenview exiv2 0.28 breaks gimp jpeg metadata export Apr 3, 2024
@rouelle
Copy link
Author

rouelle commented Apr 3, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants
@kevinbackhouse @kmilos @rouelle and others