<div dir="ltr">That's why I'd like to ensure the XML I create follows any standard that Digikam follows, if possible.  Looking at the .picasa.ini files today confirmed my expectations that it'll be too difficult to convert the the non-destructive editing parameters to those that Digikam use.  We have parameters like:<div><br></div><div>crop=rect64(fc40570fffff5ae)<br></div><div>filters=finetune2=1,0.526316,0.000000,0.000000,00000000,0.000000;<br></div><div>filters=unsharp2=1,3.000000;<br></div><div><br></div><div>I'll either leave the parameters out completely, and at best, try coping the Picasa params as is, just as a reference.  Some clever nut can have a go at converting them later on using the DB or something!</div><div><br></div><div>I'll let you know how I go.  I have to resurrect Eclipse and Java now.  I had a quick look at writing a Kipi plug-in, but I couldn't work out the language and find doco on how to work with it.  I probably need to look harder.</div><div><br></div><div>Cheers,</div><div><br></div><div>Simon</div></div><div class="gmail_extra"><br><div class="gmail_quote">On 10 February 2017 at 17:57, Gilles Caulier <span dir="ltr"><<a href="mailto:caulier.gilles@gmail.com" target="_blank">caulier.gilles@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">well parameters will populate the database with these information.<div><br></div><div>For the moment, it's just informative, but in the future, the goal is to be able to apply same filter on another image by copy and paste from GUI.</div><div><br></div><div>So, yes, it can be acceptable, but take a care. Work on test database, in case of you break something.</div><div><br></div><div>Your feedback can be interesting if it work to improve import rules in digiKam.</div><span class="HOEnZb"><font color="#888888"><div><br></div><div>Gilles Caulier</div></font></span></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">2017-02-10 1:25 GMT+01:00 g0rak 1 <span dir="ltr"><<a href="mailto:g0rak01@gmail.com" target="_blank">g0rak01@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hey Gilles,<div><br></div><div>Thank you for replying.  I checked out the namespace link but it didn't give any info on what are the acceptable names for the filters.  For the source code however I could at least what the other filter categories are, such as 'doucmentedHistory.  </div><div><br></div><div>Based on this, can I just make up my own filter name, and provide no parameters?  </div><div><br></div><div>E.g. below I have made a filter named 'picasa:Picasa', display name 'Edited by Picasa', filter version '1', with a category 'documentedHistory'.</div><div><br></div><div><?xml version="1.0"?>.<br></div><div><div><history version="1">.</div><div>  <file uuid="4d13dbbff40ae5501c42e631<wbr>4b8b8f52" type="original">.</div><div>    <fileParams fileName="20170103_094034.jpg" filePath="/Users/simon/Photos/<wbr>2016/Holiday/" fileHash="8838978dccc24c1763b6<wbr>996fe94bb019" fileSize="4401586" creationDate="2017-01-03T09:40<wbr>:34"/>.</div><div>  </file>.</div><div>  <filter filterName="picasa:Picasa" filterDisplayName="Edited by Picasa" filterVersion="1" filterCategory="documentedHist<wbr>ory">.        </div><div>    <params>.</div><div>    </params>.</div><div>  </filter>.</div><div></history>.</div></div><div><br></div><div>If you think it is acceptable to make up filter names, then I will be happy to give this a try.</div><div><br></div><div>Kind regards,</div><div><br></div><div>Simon</div></div><div class="m_3981652667020638010HOEnZb"><div class="m_3981652667020638010h5"><div class="gmail_extra"><br><div class="gmail_quote">On 7 February 2017 at 05:09, Gilles Caulier <span dir="ltr"><<a href="mailto:caulier.gilles@gmail.com" target="_blank">caulier.gilles@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi,<div><br></div><div>The versionning is stored in XMP digiKam namespace :</div><div><br></div><div><a href="http://www.exiv2.org/tags-xmp-digiKam.html" target="_blank">http://www.exiv2.org/tags-xmp-<wbr>digiKam.html</a><br></div><div><br></div><div>Look ImageHistory tag.</div><div><br></div><div>In source code, the method which export history to XML data is this one :</div><div><br></div><div><a href="https://cgit.kde.org/digikam.git/tree/libs/dimg/imagehistory/dimagehistory.cpp#n491" target="_blank">https://cgit.kde.org/digikam.g<wbr>it/tree/libs/dimg/imagehistory<wbr>/dimagehistory.cpp#n491</a><br></div><div><br></div><div>An example of exported history is given below (with resize tool used) :</div><div><br></div><div><div>$ exiv2 -px DSC03712_1.JPG </div><div>Xmp.tiff.Software                            XmpText    13  digiKam-4.2.0</div><div>Xmp.tiff.ImageWidth                          XmpText     3  800</div><div>Xmp.tiff.ImageLength                         XmpText     3  533</div><div>Xmp.xmp.CreatorTool                          XmpText    13  digiKam-4.2.0</div><div>Xmp.exif.PixelXDimension                     XmpText     3  800</div><div>Xmp.exif.PixelYDimension                     XmpText     3  533</div><div>Xmp.digiKam.ImageHistory                     XmpText   1647  <?xml version="1.0"?></div><div><history version="1"></div><div>    <file uuid="e854d7e092d41bc00c1e537a<wbr>f3e7296dafe85809797bbf3f3ff93a<wbr>48b8d07a5d" type="original"></div><div>        <fileParams filePath="/" fileHash="afe85809797bbf3f3ff9<wbr>3a48b8d07a5d" fileSize="12812288" creationDate="2014-07-13T14:52<wbr>:45"/></div><div>    </file></div><div>    <filter filterName="digikam:LocalContr<wbr>astFilter" filterDisplayName="Local Contrast Filter" filterVersion="2" filterCategory="reproducible"></div><div>        <params></div><div>            <param name="functionId" value="0"/></div><div>            <param name="highSaturation" value="100"/></div><div>            <param name="lowSaturation" value="100"/></div><div>            <param name="randomSeed" value="2940933007"/></div><div>            <param name="stage[0]:blur" value="11"/></div><div>            <param name="stage[0]:enabled" value="true"/></div><div>            <param name="stage[0]:power" value="30"/></div><div>            <param name="stage[1]:enabled" value="false"/></div><div>            <param name="stage[2]:enabled" value="false"/></div><div>            <param name="stage[3]:enabled" value="false"/></div><div>            <param name="stretchContrast" value="true"/></div><div>        </params></div><div>    </filter></div><div>    <file uuid="9265806dd2ed9a362fdd2d9d<wbr>83da1d3cafe85809797bbf3f3ff93a<wbr>48b8d07a5d"></div><div>        <fileParams fileName="DSC03712.JPG" filePath="/Users/gilles/Pictur<wbr>es/Photos/SALAGOU/2014-07-13/" fileHash="fdb610f5d23b875e575d<wbr>7fb3d32df0b1" fileSize="4562194"/></div><div>    </file></div><div>    <filter filterName="transform:resize" filterDisplayName="Resize" filterVersion="1" filterCategory="reproducible" branch="true"></div><div>        <params></div><div>            <param name="height" value="533"/></div><div>            <param name="width" value="800"/></div><div>        </params></div><div>    </filter></div><div></history></div><div><br></div><div>Xmp.digiKam.ImageUniqueID                    XmpText    64  a50d3eaae1bc5da03c0c7d159bb30<wbr>649fdb610f5d23b875e575d7fb3d32<wbr>df0b1</div></div><span class="m_3981652667020638010m_8611255121635549543HOEnZb"><font color="#888888"><div><br></div><div>Gilles Caulier</div><div><br></div></font></span></div><div class="m_3981652667020638010m_8611255121635549543HOEnZb"><div class="m_3981652667020638010m_8611255121635549543h5"><div class="gmail_extra"><br><div class="gmail_quote">2017-02-06 10:29 GMT+01:00 g0rak 1 <span dir="ltr"><<a href="mailto:g0rak01@gmail.com" target="_blank">g0rak01@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hey all,<div><br></div><div>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:</div><div><br></div><div>- exporting all edited photos from Picasa</div><div>- adding '_v1' to their filenames</div><div>- adding Digikam's versioning XML to 'ImageHistory' field in the XMP tag of each edited image</div><div><br></div><div>Digikam should then link the edited version with the original, and then hide the original in the thumbnail browser as the original 'version'.</div><div><br></div><div>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.  </div><div><br></div><div>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.</div><div><br></div><div>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.</div><div><br></div><div>Thanks for your help, </div><div><br></div><div>Simon</div><div><br></div><div><br></div></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>