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 · 20 comments
Open

exiv2 0.28 breaks gimp jpeg metadata export #2670

rouelle opened this issue Jun 30, 2023 · 20 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

@gigago
Copy link

gigago commented Jun 10, 2024

Same here, gimp discarding Sony SOOC exif metadata with error message. Consistently repeatable.

console err mesg
JPEG image-Warning: run: saving metadata failed: Failed to write image

arch, updated last minute
gimp 2.10.38
exiv2 0.28.2

@sleeksorrow
Copy link

sleeksorrow commented Aug 26, 2024

Is there any progress or workaround? On Manjaro my workflow is seriously broken with exiv2 0.28.3. Tried GIMP 2.10.38 from repos and verified with GIMP 2.99.18 from flatpak, both affected with all pictures from my Sony Alpha 6400.

@rouelle
Copy link
Author

rouelle commented Aug 26, 2024

Still the same for me on Arch Linux. gimp discards Sony DSC-HX80 and Nikon Z5 exif metadata with error message. Consistently repeatable. And sleeksorrow is right when he says my workflow is seriously broken

arch, updated last minute
gimp 2.10.38
exiv2 0.28.3

@gigago
Copy link

gigago commented Aug 26, 2024

For me, executing once

exiftool -r -overwrite_original -Make=Sony .

in SONY picture folders - replacing the value "SONY" with "Sony" in all files - before editing in gimp worked just fine. No more errors after that.

@rouelle
Copy link
Author

rouelle commented Aug 29, 2024

You're right, I tried for a Sony DSC-HX80 and it works. I didn't check for NIKON CORPORATION. Anyways we should'nt have to change the Make tag spelling to lowercase and, IMHO, exiv2 should take care of the tag be it lower or uppercase.

@gigago
Copy link

gigago commented Aug 29, 2024

Sure, it's a silly bug that ought to be fixed, but at least there's a workaround, so you can continue your life with just a slight nuisance.

@sleeksorrow
Copy link

Sure, it's a silly bug that ought to be fixed, but at least there's a workaround, so you can continue your life with just a slight nuisance.

Please, with no offense to you, this comment was unnecessary and and does not match the criticality of this bug. For criticality you also have to consider risk probability in addition to risk consequence.

For now, like 4 or 5 people now have a workaround for a bug that only affects Arch and Manjaro users of GIMP. For myself I was debugging and trying and searching hours and hours until I now have a workaround I could live with.

Can you imagine what happens, as soon as Ubuntu moves to exiv2 0.28? Thousands and thousands of GIMP users will get an error popup when saving jpeg or png. Thousands wasting time searching for a solution, flooding gimp forums and later on this issue tracker. We all will probably learn a lot of new curse words by then.

We are just lucky that Ubuntu 24.10 will still stick to exiv2 0.27.6 for now. https://packages.ubuntu.com/oracular/exiv2

@gigago
Copy link

gigago commented Aug 29, 2024 via email

@sleeksorrow
Copy link

sleeksorrow commented Aug 29, 2024

You obviously did not get the point I was making. A workaround is great, but you are using its sheer existence to lower the criticality. Until GIMP is giving this hint together with the error message, this will still help only 4-5 people, the rest will flame the devs here.

@gigago
Copy link

gigago commented Aug 29, 2024

I'm neither member of the dev team nor issue manager, so I'm prioritising precisely nothing. If this is not fixed in a timely fashion, developers may face a lot of flac down the line. That's their problem, not mine - or yours, for that matter.

@sleeksorrow
Copy link

Then your comments to belittle this issue are even more unnecessary as I thought and I have no clue what your goal even is.

@gigago
Copy link

gigago commented Aug 29, 2024

Usually, the best way to get something fixed is to ask the right person nicely - in this case, a developer. Just saying.

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

6 participants
@sleeksorrow @kevinbackhouse @kmilos @gigago @rouelle and others