[Digikam-devel] [Bug 283681] After re-activating several collections, a huge number of raw pics cannot be opened
Andreas Huggel
ahuggel at gmx.net
Wed Nov 2 00:38:34 GMT 2011
https://bugs.kde.org/show_bug.cgi?id=283681
--- Comment #10 from Andreas Huggel <ahuggel gmx net> 2011-11-02 00:38:33 ---
I have received two sample pictures off-line from Axel:
Pic 1: DSC_4789.NEF - (original) pic, contains one tag "Tier"
Pic 2: DSC_4789_plus_new_tag.NEF - immediately after inserting the additional
new tag "Belege"
Quick observations:
Pic 1 is not straight from the camera, it has been modified by digiKam and
contains XMP tags (incl. tag Xmp.tiff.Software set to "digiKam-2.0.0-rc"),
presumably added by exiv2. Thus it seems that exiv2 _can_ in general modify
your NEFs without destroying them. It has the following tags with the value
"Tier":
$ exiv2 -pa -u DSC_4789.NEF | grep -e Tier -e Belege
Iptc.Application2.Keywords String 4 Tier
Xmp.dc.subject XmpBag 1 Tier
Xmp.digiKam.TagsList XmpSeq 1 Tier
Xmp.MicrosoftPhoto.LastKeywordXMP XmpSeq 1 Tier
Xmp.lr.hierarchicalSubject XmpBag 1 Tier
Pic 2 has a totally crippled structure. IFD0 is missing TIFF tags (that's what
GIMP is complaining about), sub-image2 went missing, the makernote is no longer
there and almost all Exif tags have disappeared. It has the following tags with
the value "Tier" or "Belege":
$ exiv2 -pa -u DSC_4789_plus_new_tag.NEF | grep -e Tier -e Belege
Iptc.Application2.Keywords String 6 Belege
Iptc.Application2.Keywords String 4 Tier
Xmp.digiKam.TagsList XmpSeq 2 Tier, Belege
Xmp.dc.subject XmpBag 2 Belege, Tier
Xmp.MicrosoftPhoto.LastKeywordXMP XmpSeq 2 Tier, Belege
Xmp.lr.hierarchicalSubject XmpBag 2 Tier, Belege
To verify if the problem is due to exiv2, it's best to reproduce the problem
with just the exiv2 tool. However, I can easily add "Belege" as above to Pic 1
without corrupting it with the following command:
$ cat add-belege.cmd
add Iptc.Application2.Keywords Belege
set Xmp.digiKam.TagsList Belege
set Xmp.dc.subject Belege
set Xmp.MicrosoftPhoto.LastKeywordXMP Belege
reg lr http://ns.adobe.com/lightroom/1.0/
set Xmp.lr.hierarchicalSubject Belege
$ exiv2 -v -m add-belege.cmd DSC_4789.NEF
The result is an intact picture with the "Belege" tags as in Pic 2 (except for
the order in Xmp.dc.subject):
exiv2 -pa -u DSC_4789.NEF | grep -e Tier -e Belege
Iptc.Application2.Keywords String 4 Tier
Iptc.Application2.Keywords String 6 Belege
Xmp.dc.subject XmpBag 2 Tier, Belege
Xmp.digiKam.TagsList XmpSeq 2 Tier, Belege
Xmp.MicrosoftPhoto.LastKeywordXMP XmpSeq 2 Tier, Belege
Xmp.lr.hierarchicalSubject XmpBag 2 Tier, Belege
So this doesn't look like an exiv2 issue. Please provide the steps to reproduce
it with just exiv2 (a reproducer program or the command line tool), if you
think it is.
Andreas
--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the Digikam-devel
mailing list