<html><head></head><body><div class="ydpfd172bd5yahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;"><div></div>
<div dir="" data-setdir="true" align="left">Hello,</div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false">I found a way to do this by modifying the database directly.</div><div dir="ltr" data-setdir="false"><div>This worked on my setup with digikam 7.9.0.</div><div><br></div><div dir="ltr" data-setdir="false"><span>Use this at your own risk.</span><br></div><div><br></div><div dir="ltr" data-setdir="false"><ol><li>First close digikam and make a backup of your digikam database.</li><li>In the Tags table, search for the "<span>id" value for the "name" "Current Version</span>". For me it was "4" but may be different for you.</li><li>In the Images tables, search for the original picture and note its id (which in the other tables is names imageid).</li><li>Then in the ImageTags table, you should have a record having <span>the imageid of the original picture and </span> the tagid value for "current version".</li><li>Delete that record.</li><li>Reopen digikam, it should now behave as if you had clicked.<br></li></ol></div><div dir="ltr" data-setdir="false"><br></div>These are 2 SQL statements you may want to adapt and use. USE AT YOUR OWN RISK.<br></div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false">To search for the imageid for which to remove the record inside ImageTags:</div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false"><span><span style="font-family:monospace"><span style="color:#000000;background-color:#ffffff;">select * from imagetags, images, ImageRelations</span></span></span></div><div dir="ltr" data-setdir="false"><span><span style="font-family:monospace"><span style="color:#000000;background-color:#ffffff;">where images.name like "%pattern_in_picture_filename%" </span></span></span></div><div dir="ltr" data-setdir="false"><span><span style="font-family:monospace"><span style="color:#000000;background-color:#ffffff;">and imagetags.imageid = images.id</span></span></span></div><div dir="ltr" data-setdir="false"><span><span style="font-family:monospace"><span style="color:#000000;background-color:#ffffff;">and imagerelations.object = images.id</span></span></span></div><div dir="ltr" data-setdir="false"><span><span style="font-family:monospace"><span style="color:#000000;background-color:#ffffff;">and imagetags.tagid = (select id from t</span>ags where name = "Current Version");<br></span></span></div><div dir="ltr" data-setdir="false"><span><span style="font-family:monospace"><br></span></span></div><div dir="ltr" data-setdir="false"><span>To remove the record of ImageTags:</span></div><div dir="ltr" data-setdir="false"><span><br></span></div><div dir="ltr" data-setdir="false"><span><span><span style="font-family:monospace"><span style="color:#000000;background-color:#ffffff;">delete from imagetags where imageid = PUT_IMAGE_ID_HERE and tagid = <span><span><span style="font-family:monospace"><span style="color:#000000;background-color:#ffffff;">(select id from t</span>ags where name = "Current Version")</span></span></span>;</span></span></span></span></div><div dir="ltr" data-setdir="false"><span><span><span style="font-family:monospace"><span style="color:#000000;background-color:#ffffff;"><br></span></span></span></span></div><div dir="ltr" data-setdir="false"><span><span><span style="font-family:monospace"><span style="color:#000000;background-color:#ffffff;"><br></span></span></span></span></div><div dir="ltr" data-setdir="false"><span>Regards<br></span></div></div><div id="yahoo_quoted_0184921746" class="yahoo_quoted">
<div style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;color:#26282a;">
<div>
Le mardi 22 octobre 2024 à 08:33:12 UTC+2, Maik Qualmann <metzpinguin@gmail.com> a écrit :
</div>
<div><br></div>
<div><br></div>
<div><div dir="ltr">The "save as new version" function does exactly what it is supposed to do, it <br clear="none">creates a new version, an independent image. This means that the original <br clear="none">image is not hidden.<br clear="none"><br clear="none">Maik<br clear="none"><br clear="none">Am Dienstag, 22. Oktober 2024, 08:18:40 Mitteleuropäische Sommerzeit schrieb <br clear="none">Fab:<div class="yqt5133231446" id="yqtfd87418"><br clear="none">> Hello,<br clear="none">> <br clear="none">> I can't find how to hide the original version of a file, given that the new<br clear="none">> versions was created with "save as new version" instead of "save changes" in<br clear="none">> the image editor.<br clear="none">> <br clear="none">> When I do "save changes", it is hidden automatically and I know where to<br clear="none">> unhide it, but if I use "save as new version" the icon to hide/unhidde<br clear="none">> doesn't seem to work.<br clear="none">> <br clear="none">> This is with digikam 7.9.0 (debian stable).<br clear="none">> <br clear="none">> If there is no way to correct this in the GUI, is there a way to achieve<br clear="none">> this by modifying the database directly? I tried to remove the record in<br clear="none">> ImageTags table for the original image, the record that has tagid 2, but<br clear="none">> this is apparently not sufficient, because in that case, there is no<br clear="none">> floating icon to hide/unhide the original picture anymore.<br clear="none">> <br clear="none">> Regards<br clear="none"><br clear="none"><br clear="none"><br clear="none"><br clear="none"></div></div></div>
</div>
</div></body></html>