Metadata is not refreshed when new versions of darktable or exiv2 produce different results
Images taken with Pentax K-S1 are missing lens information.
exiv2 reports it correctly:
$ exiv2 -pt IMGP0553.JPG | grep -ai lenstype
Exif.PentaxDng.LensType Byte 4 smc PENTAX-DA 35mm F2.4 AL
Tested on Darktable 1.6.8 and 1.6.9
#2 Updated by Piotr Ryszkiewicz over 4 years ago
I am using exiv2 0.25. I believe that this is the same version as darktable is build against. I still have 0.24 installed as well, because of package dependencies of my system, but dev package is in 0.25 version inly, and default libraries are also symlinked to 0.25 version. I tried both precompiled packages from Darktable Release PPA and version compiled from source code.
$ exiv2 -V
exiv2 0.25 001900 (64 bit build)
Sample image attached
#3 Updated by Pedro Côrte-Real over 4 years ago
If I had to guess I'd say darkatble is still linked against exiv2 0.24. That version doesn't support these PentaxDng tags. To check run something like this:
$ ldd `which darktable` | grep exiv2
libexiv2.so.12 => /usr/lib/libexiv2.so.12 (0x00007f3e34a8e000)
#4 Updated by Piotr Ryszkiewicz over 4 years ago
Well, that's true for precompiled package, but not for my compilation:
$:~/archiv/darktable-1.6.9$ ldd `which darktable` | grep exiv2
libexiv2.so.13 => /usr/lib/x86_64-linux-gnu/libexiv2.so.13 (0x00007feb82ae1000)
$:~/archiv/darktable-1.6.9$ ldd build/src/darktable | grep exiv2
libexiv2.so.14 => /usr/lib/x86_64-linux-gnu/libexiv2.so.14 (0x00007fcd44aa5000)
#8 Updated by Pedro Côrte-Real over 4 years ago
This works fine here with darktable 1.6.9 or master. Maybe you've imported the image with a previous version that wasn't able to read that and now that's what's encoded in the database. We need to find a way to reread metadata when the exiv version changes but I'm not sure how to do it.
#11 Updated by Pedro Côrte-Real over 4 years ago
- Status changed from Incomplete to Triaged
- Subject changed from Pentax K-S1 - missing lens info to Metadata is not refreshed when new versions of darktable or exiv2 produce different results
I'm changing the title of the bug to track the underlying issue.
#12 Updated by Piotr Ryszkiewicz over 4 years ago
Pedro Côrte-Real wrote:
maybe you could just rebuild your official packages with exiv2 0.25.
You probably mean Pascal's ppa. That already includes an exiv2 that works fine with these files, that's what I use. It's 0.23 but with backports.
Maybe I misunderstand something, but exiv2 library is not distributed as a part of darktable package. So if it's linked to my 0.24 version, without backports, then it will not work, am I right ?
#13 Updated by Pascal de Bruijn over 4 years ago
FYI: I only ship a exiv2 0.23 with backported patches up to 0.25, for Ubuntu 14.04 LTS. The newer short lived distros ship newer versions of Exiv2 (typically 0.24), and are too much work to support with backports for such a brief period.
It seems Wily (15.10) will ship with Exiv2 0.25 out of the box.