[Digikam-devel] Image history in metadata

Gilles Caulier caulier.gilles at gmail.com
Fri Jun 11 17:26:39 BST 2010


2010/6/11 Martin Klapetek <martin.klapetek at gmail.com>:
> On Fri, Jun 11, 2010 at 11:28, Gilles Caulier <caulier.gilles at gmail.com>
> wrote:
>>
>> Hi Martin,
>>
>> The image history must follow XMP metadata.
>>
>> We have a digiKam XMP namespace. Image history must be recorded to this
>> area :
>>
>> http://www.exiv2.org/tags-xmp-digiKam.html
>> http://www.sno.phy.queensu.ca/~phil/exiftool/TagNames/XMP.html#digiKam
>>
>> You said that image history will be a QString. I think that we wil
>> format XML data directly in digiKam. It's definitively a wrong way.
>> You must delegate this point to libkexiv2/Exiv2
>
> The image history is basically a QList containing another classes, which
> holds info about used filters and their settings and also revisions. This
> QList is transformed into XML (QXmlStreamWriter) when saving the image. And
> to store the XML in metadata, it's converted to QString for easy
> manipulation and that will go into metadata. Then it's read back when
> opening the image as QString and parsed by QXmlStreamReader back into the
> QList. That should be ok, no?
>

well, you don't need to encapsulated your image history data to XML.
Exiv2 will do it for you with XMP. XMP is already based on XML.

You will see any problem to encapsulated XML into XMP directly. Use
and XMP container.

For the rest, all is fine for me.

Gilles



More information about the Digikam-devel mailing list