Project

General

Profile

Bug #10680

Metadata is not refreshed when new versions of darktable or exiv2 produce different results

Added by Piotr Ryszkiewicz over 4 years ago. Updated over 4 years ago.

Status:
Triaged
Priority:
Low
Assignee:
-
Category:
-
Target version:
-
Start date:
10/23/2015
Due date:
% Done:

20%

Estimated time:
Affected Version:
1.6.8
System:
Ubuntu
bitness:
64-bit
hardware architecture:
amd64/x86

Description

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

IMGP0519.JPG (12.2 MB) IMGP0519.JPG Sample image Piotr Ryszkiewicz, 10/23/2015 12:56 AM

History

#1 Updated by Pedro Côrte-Real over 4 years ago

  • % Done changed from 0 to 20
  • Status changed from New to Incomplete

Thanks for reporting this. What version of exiv2 are you using and is it the same version that darktable is built against? Could you also attach a sample file with the issue please?

#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)

#5 Updated by Pedro Côrte-Real over 4 years ago

Ok, and do you have the problem with both?

#6 Updated by Piotr Ryszkiewicz over 4 years ago

Yes.

#7 Updated by Pedro Côrte-Real over 4 years ago

Where is the lens info missing from? The left info pane?

#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.

#9 Updated by Piotr Ryszkiewicz over 4 years ago

Yes, you are right, that was the problem. Thank you :) I did not realize that Darktable reads exif info only when the picture is imported for the first time.
For now problem solved, maybe you could just rebuild your official packages with exiv2 0.25.

#10 Updated by Pedro Côrte-Real over 4 years ago

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.

#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.

Also available in: Atom PDF

Go to top