Bug 110333 - tag images from albumstructure
Summary: tag images from albumstructure
Status: RESOLVED INTENTIONAL
Alias: None
Product: digikam
Classification: Applications
Component: Tags-Engine (show other bugs)
Version: unspecified
Platform: openSUSE Linux
: NOR wishlist
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-08-07 12:47 UTC by Dominik Fritz
Modified: 2022-01-22 14:02 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In: 7.6.0
Sentry Crash Report:


Attachments
proposed patch (6.08 KB, patch)
2005-08-07 12:49 UTC, Dominik Fritz
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dominik Fritz 2005-08-07 12:47:56 UTC
Version:           svn 0.8 (using KDE KDE 3.4.2)
Installed from:    SuSE RPMs
Compiler:          gcc 3.3.4 
OS:                Linux

Before I used digiKam and it's great tagging features I often had subfolders of an album which contained a subset of the images i.e. a selection for a slideshow.
However since I can now use the digiKam tags to achieve this I want to get rid of these subalbums and instead tag the photos. Therefore I would like to have a feature in digikam which tags my photos based on items in an other album. 

What I basicly need is the following sql statement:
replace into ImageTags (ImageId,TagId) select id,<tagID> from Images where dirid=<targetAlbum> and name in (select name from Images where dirid=<targetAlbum> intersect select name from Images where dirid=<selectionAlbum>);

<tagID> is the ID of the tag which should be assigned to the images
<targetAlbum> contains the photos which should be tagged
<selectedAlbum> contains the subset of the images.

If one can apply this action from within digikam I could simply use the existing selections to tag my photos and get rid of redundant files.
Comment 1 Dominik Fritz 2005-08-07 12:49:16 UTC
Created attachment 12123 [details]
proposed patch

proposed simple patch to implement this feature in digiKam.
Comment 2 Arnd Baecker 2007-06-12 13:51:49 UTC
Couldn't one achieve this by manipulating the sql data-base directly?
To me it looks like a pretty special situation so that I am 
not sure if this feature is really usefull to many.

Dominik, as this wish and patch are pretty old by now, the question is 
whether it still applies.

Any feedback is very much appreciated.

Best, Arnd
Comment 3 Dominik Fritz 2007-07-01 18:18:43 UTC
At least I do not need this functionality any more because I already tagged all my images with this patch. 

Dominik
Comment 4 Arnd Baecker 2007-07-01 22:54:30 UTC
Hi Dominik,

ok. Now I am really not sure what to do. Simply 
closing this bug just seems not fair -
you made the effort to contribute a patch 
(and the more people help with digikam, the better, however seeing
a patch not being applied of course discourages further contributions ...).
On the other hand, it seems not to be a commonly requested feature,
in the sense that this wish did only get votes by one person.

Generally, such one-off things are better dealt with a script, 
see utilities/scripts. These are also easier to understand and change 
for people with less programming experience.

So would it be ok for you to close this wish?

Thanks a lot for your understanding, 

Arnd

Comment 5 Arnd Baecker 2007-07-13 09:55:00 UTC
At the risk of appearing unfriendly, I close this bug.
Dominik, still I hope that this does not discourage you 
from further contributions to digiKam! Thanks a lot.

Best, Arnd