<div class="gmail_quote">On Fri, Jun 11, 2010 at 11:28, Gilles Caulier <span dir="ltr"><<a href="mailto:caulier.gilles@gmail.com">caulier.gilles@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hi Martin,<br>
<br>
The image history must follow XMP metadata.<br>
<br>
We have a digiKam XMP namespace. Image history must be recorded to this area :<br>
<br>
<a href="http://www.exiv2.org/tags-xmp-digiKam.html" target="_blank">http://www.exiv2.org/tags-xmp-digiKam.html</a><br>
<a href="http://www.sno.phy.queensu.ca/%7Ephil/exiftool/TagNames/XMP.html#digiKam" target="_blank">http://www.sno.phy.queensu.ca/~phil/exiftool/TagNames/XMP.html#digiKam</a><br>
<br>
You said that image history will be a QString. I think that we wil<br>
format XML data directly in digiKam. It's definitively a wrong way.<br>
You must delegate this point to libkexiv2/Exiv2<br></blockquote><div><br>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?<br>
 </div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<br>
Indeep, in digiKam core, the image history will be something like a<br>
QMap container, used to discribe :<br>
<br>
- the image revision.<br>
- the tool used to change image.<br>
- the tool settings.<br></blockquote><div> </div><div>Yes, that's how it's done right now.<br> </div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

<br>
In XMP, there is a lots of map container available. Look in Metadata<br>
Properties section from this doc :<br>
<br>
<a href="http://www.adobe.com/devnet/xmp/pdfs/XMPSpecificationPart1.pdf" target="_blank">http://www.adobe.com/devnet/xmp/pdfs/XMPSpecificationPart1.pdf</a><br>
<br>
To host image history to XMP, use Digikam::DMetadata class.<br>
<br>
Gilles Caulier<br></blockquote><div><br>Ok, thanks.<br><br>Marty<br></div></div>