Help me import edited 'versions' of images from Picasa

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


Hi,

The versionning is stored in XMP digiKam namespace :

http://www.exiv2.org/tags-xmp-digiKam.html

Look ImageHistory tag.

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

https://cgit.kde.org/digikam.git/tree/libs/dimg/imagehistory/dimagehistory.cpp#n491

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
version="1.0"?>
<history version="1">
    <file
uuid="e854d7e092d41bc00c1e537af3e7296dafe85809797bbf3f3ff93a48b8d07a5d"
type="original">
        <fileParams filePath="/"
fileHash="afe85809797bbf3f3ff93a48b8d07a5d" fileSize="12812288"
creationDate="2014-07-13T14:52:45"/>
    </file>
    <filter filterName="digikam:LocalContrastFilter"
filterDisplayName="Local Contrast Filter" filterVersion="2"
filterCategory="reproducible">
        <params>
            <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"/>
        </params>
    </filter>
    <file
uuid="9265806dd2ed9a362fdd2d9d83da1d3cafe85809797bbf3f3ff93a48b8d07a5d">
        <fileParams fileName="DSC03712.JPG"
filePath="/Users/gilles/Pictures/Photos/SALAGOU/2014-07-13/"
fileHash="fdb610f5d23b875e575d7fb3d32df0b1" fileSize="4562194"/>
    </file>
    <filter filterName="transform:resize" filterDisplayName="Resize"
filterVersion="1" filterCategory="reproducible" branch="true">
        <params>
            <param name="height" value="533"/>
            <param name="width" value="800"/>
        </params>
    </filter>
</history>

Xmp.digiKam.ImageUniqueID                    XmpText    64
 a50d3eaae1bc5da03c0c7d159bb30649fdb610f5d23b875e575d7fb3d32df0b1

Gilles Caulier


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

> 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: <http://mail.kde.org/pipermail/digikam-users/attachments/20170206/2c3fb7e1/attachment.html>


More information about the Digikam-users mailing list