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

Missing EXIF data in some JPEG images #16883

Closed
jlvdb opened this issue May 26, 2024 · 10 comments
Closed

Missing EXIF data in some JPEG images #16883

jlvdb opened this issue May 26, 2024 · 10 comments
Labels
bug: upstream he bug needs a fix outside of the scope of darktable, in an external lib or in a driver

Comments

@jlvdb
Copy link

jlvdb commented May 26, 2024

Describe the bug

On a small fraction of JPEG images, Darktable shows no EXIF data (camera, lens orientation, etc.). EXIF data looks correct when viewed in external viewer. I am shooting RAW+JPEG and the RAW file has been handled correctly by darktable (shot with Sony a6000). The image was imported through DT's copy&import function and the file was named correctly based on it's EXIF timestamp.

Steps to reproduce

Unfortunately I do not have the original image anymore, so cannot reproduce the issue, but I included the image below. As said above, this images has already been imported and copied by DT.

Expected behavior

No response

Logfile | Screenshot | Screencast

20240505_132959_0060

Commit

No response

Where did you obtain darktable from?

distro packaging

darktable version

4.6.1-1.1+74.1

What OS are you using?

Linux

What is the version of your OS?

Linux Mint 21.2 Cinnamon

Describe your system?

No response

Are you using OpenCL GPU in darktable?

No

If yes, what is the GPU card and driver?

No response

Please provide additional context if applicable. You can attach files too, but might need to rename to .txt or .zip

No response

@victoryforce
Copy link
Collaborator

but I included the image below

I don't quite understand from your text, is this image the one for which darktable doesn't show the EXIF data?

@jlvdb
Copy link
Author

jlvdb commented May 26, 2024

Yes, if I download the image and import it to a new filmroll, this is the image information that DT shows (none)
DT_image_information
This is what it should show instead (from mint's Xviewer)
exif

@victoryforce
Copy link
Collaborator

Can't reproduce:

darktable_j0JjRUW8ZZ

 
The exiv2 command line utility doesn't show data either?

@jlvdb
Copy link
Author

jlvdb commented May 26, 2024

It seems that the file is fine for exiftool, but exiv2 says corrupted image metadata.
This issues seems to be an issue not with just one photo, but with about 70 out of a 3000 that I have tried to load into DT so far. Although I haven not confirmed with exiv2 yet.

@jlvdb
Copy link
Author

jlvdb commented May 26, 2024

This would indicate to me that it is either an issue with the camera or exiv2. Just wondering how you get a correct reading of the EXIF data and I don't. Maybe a different exiv2 oder DT version?
My system is using libexiv2-27:amd64 / 0.27.5-3ubuntu1 I think.

Either way, I fixed the files in question by rewriting them with exiftool. After refreshing the EXIF in DT, the images were read correctly.

@victoryforce
Copy link
Collaborator

This would indicate to me that it is either an issue with the camera or exiv2.

exiv2, most likely

Just wondering how you get a correct reading of the EXIF data and I don't. Maybe a different exiv2 oder DT version?

darktable is the same (4.6.1) but built with exiv2 0.27.7

My system is using libexiv2-27:amd64 / 0.27.5-3ubuntu1 I think.

@kmilos Is this smells familiar to you? Is this the same bug you fixed in exiv2 0.27.7 and 0.28.1?

@kmilos
Copy link
Contributor

kmilos commented May 27, 2024

I wish my brain could remember all the bugs! Will need to build 0.27.5 and 0.27.7 in debug at some point and check what's going on...

@kmilos
Copy link
Contributor

kmilos commented May 27, 2024

Yep, after a brief search, this seems to be Exiv2/exiv2#1881 (comment) that was fixed in exiv2 0.27.6

@jenshannoschwalm jenshannoschwalm added the bug: upstream he bug needs a fix outside of the scope of darktable, in an external lib or in a driver label May 27, 2024
@victoryforce
Copy link
Collaborator

@jlvdb You need a newer libexiv2 on your system, so I'm closing the issue since it's not a darktable bug.

@victoryforce victoryforce closed this as not planned Won't fix, can't repro, duplicate, stale May 27, 2024
@jlvdb
Copy link
Author

jlvdb commented May 27, 2024

Thanks for helping me sort this out!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug: upstream he bug needs a fix outside of the scope of darktable, in an external lib or in a driver
Projects
None yet
Development

No branches or pull requests

4 participants