Hide versions created with "save as new version"
Fabien Steinmetz
fabst_lists at yahoo.fr
Thu Oct 24 08:48:34 BST 2024
Hello,
I found a way to do this by modifying the database directly.This worked on my setup with digikam 7.9.0.
Use this at your own risk.
- First close digikam and make a backup of your digikam database.
- In the Tags table, search for the "id" value for the "name" "Current Version". For me it was "4" but may be different for you.
- In the Images tables, search for the original picture and note its id (which in the other tables is names imageid).
- Then in the ImageTags table, you should have a record having the imageid of the original picture and the tagid value for "current version".
- Delete that record.
- Reopen digikam, it should now behave as if you had clicked.
These are 2 SQL statements you may want to adapt and use. USE AT YOUR OWN RISK.
To search for the imageid for which to remove the record inside ImageTags:
select * from imagetags, images, ImageRelationswhere images.name like "%pattern_in_picture_filename%" and imagetags.imageid = images.idand imagerelations.object = images.idand imagetags.tagid = (select id from tags where name = "Current Version");
To remove the record of ImageTags:
delete from imagetags where imageid = PUT_IMAGE_ID_HERE and tagid = (select id from tags where name = "Current Version");
Regards
Le mardi 22 octobre 2024 à 08:33:12 UTC+2, Maik Qualmann <metzpinguin at gmail.com> a écrit :
The "save as new version" function does exactly what it is supposed to do, it
creates a new version, an independent image. This means that the original
image is not hidden.
Maik
Am Dienstag, 22. Oktober 2024, 08:18:40 Mitteleuropäische Sommerzeit schrieb
Fab:
> Hello,
>
> I can't find how to hide the original version of a file, given that the new
> versions was created with "save as new version" instead of "save changes" in
> the image editor.
>
> When I do "save changes", it is hidden automatically and I know where to
> unhide it, but if I use "save as new version" the icon to hide/unhidde
> doesn't seem to work.
>
> This is with digikam 7.9.0 (debian stable).
>
> If there is no way to correct this in the GUI, is there a way to achieve
> this by modifying the database directly? I tried to remove the record in
> ImageTags table for the original image, the record that has tagid 2, but
> this is apparently not sufficient, because in that case, there is no
> floating icon to hide/unhide the original picture anymore.
>
> Regards
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/digikam-users/attachments/20241024/5a72795e/attachment.htm>
More information about the Digikam-users
mailing list