Help me import edited 'versions' of images from Picasa

Gilles Caulier caulier.gilles at
Mon Feb 6 18:09:03 GMT 2017


The versionning is stored in XMP digiKam namespace :

Look ImageHistory tag.

In source code, the method which export history to XML data is this one :

An example of exported history is given below (with resize tool used) :

$ exiv2 -px DSC03712_1.JPG
Xmp.tiff.Software                            XmpText    13  digiKam-4.2.0
Xmp.tiff.ImageWidth                          XmpText     3  800
Xmp.tiff.ImageLength                         XmpText     3  533
Xmp.xmp.CreatorTool                          XmpText    13  digiKam-4.2.0
Xmp.exif.PixelXDimension                     XmpText     3  800
Xmp.exif.PixelYDimension                     XmpText     3  533
Xmp.digiKam.ImageHistory                     XmpText   1647  <?xml
<history version="1">
        <fileParams filePath="/"
fileHash="afe85809797bbf3f3ff93a48b8d07a5d" fileSize="12812288"
    <filter filterName="digikam:LocalContrastFilter"
filterDisplayName="Local Contrast Filter" filterVersion="2"
            <param name="functionId" value="0"/>
            <param name="highSaturation" value="100"/>
            <param name="lowSaturation" value="100"/>
            <param name="randomSeed" value="2940933007"/>
            <param name="stage[0]:blur" value="11"/>
            <param name="stage[0]:enabled" value="true"/>
            <param name="stage[0]:power" value="30"/>
            <param name="stage[1]:enabled" value="false"/>
            <param name="stage[2]:enabled" value="false"/>
            <param name="stage[3]:enabled" value="false"/>
            <param name="stretchContrast" value="true"/>
        <fileParams fileName="DSC03712.JPG"
fileHash="fdb610f5d23b875e575d7fb3d32df0b1" fileSize="4562194"/>
    <filter filterName="transform:resize" filterDisplayName="Resize"
filterVersion="1" filterCategory="reproducible" branch="true">
            <param name="height" value="533"/>
            <param name="width" value="800"/>

Xmp.digiKam.ImageUniqueID                    XmpText    64

Gilles Caulier

2017-02-06 10:29 GMT+01:00 g0rak 1 <g0rak01 at>:

> Hey all,
> I'm new to Digikam and looking to move from Picasa.  I've been impressed
> by Digikam's non-destructive versioning and want to use it to retain my
> Picasa edits by:
> - exporting all edited photos from Picasa
> - adding '_v1' to their filenames
> - adding Digikam's versioning XML to 'ImageHistory' field in the XMP tag
> of each edited image
> Digikam should then link the edited version with the original, and then
> hide the original in the thumbnail browser as the original 'version'.
> Does anyone know where I can find the specification for Digikam's
> versioning XML, so I can work out how to write my own XML into the images?
> I can see the basic structure after performing a resize etc., but ideally I
> want to keep things simple and record each edited version as 'Edited by
> Picasa' without having to work out what the edit actually was.
> I'm not sure if it's possible to define a generic 'version' in the XML
> without specifying a 'filter' and 'parameters' (e.g. a resize with
> coordinates, etc.), but would like to find out.
> If I can get this to work I will happily share my script with the
> community as there might be others looking to move from Picasa who would
> like to maintain their edits alongside their originals.
> Thanks for your help,
> Simon
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the Digikam-users mailing list