Summary: | Metadata editor doesn't recognize contact info written with digikam 2.6 and higher [patch] | ||
---|---|---|---|
Product: | [Applications] digikam | Reporter: | Knut Hildebrandt <knut.hildebrandt> |
Component: | Plugin-Generic-MetadataEdit | Assignee: | Digikam Developers <digikam-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | alan.pater, caulier.gilles, knut.hildebrandt |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Ubuntu | ||
OS: | Linux | ||
Latest Commit: | http://commits.kde.org/kipi-plugins/6414115e0f9d8f28240fb75180d0353938eb30c4 | Version Fixed In: | 4.2.0 |
Sentry Crash Report: | |||
Attachments: |
Test image with metadata added by digikam
Quick patch to use nested properties Improved patch to nest xmp.iptc tags Prefers nested tags, removes non-nested Patch to prefer nested tags and replace non-nested MetadataEdit XMP Credits nested version |
Description
Knut Hildebrandt
2013-01-13 20:11:40 UTC
Created attachment 84473 [details] Test image with metadata added by digikam I have tested version 3.4 and the same issue is still coming up, Contact Info tabs are written at the root level rather then nested. I opened a bug on Launchpad before seeing this here: https://bugs.launchpad.net/ubuntu/+source/digikam/+bug/1266289 The properties that should be written to are: Xmp.iptc.CreatorContactInfo/Iptc4xmpCore:CiAdr* Currently, metadataedit is writing to: Xmp.iptc.CiAdr* This can happen because exiv2 does not enforce correct XMP nested properties, but allows XMP properties and XMP classes to be interchanged at will by applications. Created attachment 84478 [details]
Quick patch to use nested properties
A quick Find & Replace on xmpcredits.cpp resulted in the attached diff. Should work, no?
Created attachment 85155 [details]
Improved patch to nest xmp.iptc tags
This patch is tested and working.
It writes the full nested tags by default.
It reads the first of the non-nested and nested tags that already exist in an image.
What it does not do is replace the non-nested with a correct nested tag.
To do that, the user needs to uncheck the field for the tag and then rewrite it.
Created attachment 85313 [details]
Prefers nested tags, removes non-nested
This version allows the correct nested tags, if they exist, to be preferred. It also deletes the non-nested tags and writes the nested version.
Created attachment 86179 [details]
Patch to prefer nested tags and replace non-nested
As Knut indicated, the change in Digikam happened between version 2.5 and version 2.6. https://bugs.kde.org/show_bug.cgi?id=287267 - IptcCore tags are written incorrectly. Created attachment 86224 [details] MetadataEdit XMP Credits nested version Tested using kipi-plugins package built for Ubuntu Trusty on https://launchpad.net/~alan-pater/+archive/dwc It reads nested and/or non-nested tags. It writes only nested tags and converts non-nested tags to nested. Git commit 6414115e0f9d8f28240fb75180d0353938eb30c4 by Marcel Wiesweg. Committed on 30/06/2014 at 21:02. Pushed by mwiesweg into branch 'master'. Apply patch by Alan Pater M +101 -14 metadataedit/xmp/xmpcredits.cpp http://commits.kde.org/kipi-plugins/6414115e0f9d8f28240fb75180d0353938eb30c4 |