[Digikam-devel] [Bug 220545] Cannot write XMP sidecar files

Andreas Huggel ahuggel at gmx.net
Thu Apr 1 15:27:23 BST 2010


https://bugs.kde.org/show_bug.cgi?id=220545





--- Comment #13 from Andreas Huggel <ahuggel gmx net>  2010-04-01 16:27:20 ---
Re comment #10:

> I suppose that at least when I would do a "save" from libkexiv2 (which puts
> Exif, IPTC and XMP metadata in the Exiv2::Image using setExifData, setIPTCData,
> and setXMPData, respectively, and then calls writeMetaData) the Exif and IPTC
> data would get converted to XMP tags, and written to the XMP sidecar? Can you
> confirm this behaviour?

Yes, XmpSidecar::writeMetadata() converts certain Exif and IPTC tags from their
respective Exiv2 containers as set in the XmpSidecar to XMP properties in the
resulting file. So you'll find properties like exif:FNumber in the *.xmp file.

XmpSidecar::readMetadata converts (copies) these properties back into the Exiv2
Exif and IPTC containers. So you'll find the Exif tag Exif.Photo.FNumber in the
ExifData container and the XMP property Xmp.exif.FNumber in the XmpData
container after reading the sidecar.

>> When it comes
>> to the contents of the sidecar files, you'll need to turn to libexiv2. 
>
> I'm not following... Are you talking about the issue with getting the XMP
> encoded Exif and IPTC tags converted into proper Exif and IPTC, i.e. the issue
> discussed at the top of this reply?

Yes. I was referring to the conversion described above. That code in Exiv2 will
be the place to tweak to tweak what Exif and IPTC metadata are converted and
how they are stored in the sidecar file.

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