apply keywords/tags from one album to contents of another?

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

apply keywords/tags from one album to contents of another?

Daniel Bauer-2
Hi again

Might be another stupid question and I'm sorry if I bother you again for
something you've already solved and I just haven't found it...

Let's say I have album "big" with images with keywords/tags. Now I use "extras
-> batch jobs -> resize images" to resize them into album "small". There the
photos don't have the tags, of course.

What can I do to make the photos of the same name (but in different
directories/albums) having the same tags? This is not of big importance, but
it would be nice to have it.

The only way that came into my head first was to write directly into the
Sqlite-database. But this appears quite tricky to me, because I'd have to
find out the id's in the Images table of the "big" and the "small", then look
up the tagid in ImageTags for "big" and build an INSERT command for "small".  
(And I don't know much about scripting on Linux yet, my programming knowledge
is nearly NULL, I wasn't even able to import the Sqlite dump into a
MySQL-database for testing a bit...)

Then I thought, ok, I'll copy all from "big" to "small" (tags will be copied
as well), then do the resize job with "overwrite" option. This works, but I'm
asked for each photo if I really want to overwrite it. That's ok, but when
resizing 800 photos it's a bit a lot of clicking ;-)

Finally I used kind of a brute method: copy all from "big" to "small", resize
with rename-option in the same directory, closing digikam, deleting all the
originals in "small", renaming all the new pictures back to the original
names and reopen digikam. Not very elegant, but it works...

Of course I'd pefer a more elegant way and I almost fear, that once again
there already is one and I was just to blind to descover it. So if anybody
has a hint for me, I'd be greatful...

Have a nice weekend!

Daniel
--
Daniel Bauer photographer Basel Switzerland
professional photography: http://www.daniel-bauer.com
special interest site: http://www.bauer-nudes.com

_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users
Reply | Threaded
Open this post in threaded view
|

Re: apply keywords/tags from one album to contents of another?

Bugzilla from tomalbers@kde.nl
Op zaterdag 4 februari 2006 20:55, schreef Daniel Bauer:

> Hi again
>
> Might be another stupid question and I'm sorry if I bother you again for
> something you've already solved and I just haven't found it...
>
> Let's say I have album "big" with images with keywords/tags. Now I use
> "extras -> batch jobs -> resize images" to resize them into album "small".
> There the photos don't have the tags, of course.
>
> What can I do to make the photos of the same name (but in different
> directories/albums) having the same tags? This is not of big importance,
> but it would be nice to have it.
>
> The only way that came into my head first was to write directly into the
> Sqlite-database. But this appears quite tricky to me, because I'd have to
> find out the id's in the Images table of the "big" and the "small", then
> look up the tagid in ImageTags for "big" and build an INSERT command for
> "small". (And I don't know much about scripting on Linux yet, my
> programming knowledge is nearly NULL, I wasn't even able to import the
> Sqlite dump into a MySQL-database for testing a bit...)
There is no direct way, but you can use the advanced search to select all
images from both folders, so you can tag them quickly.

> Then I thought, ok, I'll copy all from "big" to "small" (tags will be
> copied as well), then do the resize job with "overwrite" option. This
> works, but I'm asked for each photo if I really want to overwrite it.
> That's ok, but when resizing 800 photos it's a bit a lot of clicking ;-)

Please report a wish on bugs.kde.org: 'Make a overwrite all button here and
here'.

> Finally I used kind of a brute method: copy all from "big" to "small",
> resize with rename-option in the same directory, closing digikam, deleting
> all the originals in "small", renaming all the new pictures back to the
> original names and reopen digikam. Not very elegant, but it works...
>
> Of course I'd pefer a more elegant way and I almost fear, that once again
> there already is one and I was just to blind to descover it. So if anybody
> has a hint for me, I'd be greatful...

No, the resize is a kipi action, so keeping the tags can be a pain in the ..
to implement. The overwrite all might be the best way out here.

Toma

_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users

attachment0 (196 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: apply keywords/tags from one album to contents of another?

jdd@dodin.org
I think there is a general problem related to this one. that
is relation between digikam and other system actions.

for example, I use a script to rename the files (simple mmv
"*" XXXX#1). The files are the same, but digikam don't know.

so if I forget to do so before tagging or simply creating
the album icon, the data is lost.

there should be two ways (at user will) to identify the
files in digikam.

* first by name (a file could be modified, but keep its
digikam stuff is the name is kept the same) - this need some
sort of file name storage,

* second by file content. It should be possible to keep a
file consistent through changing name. some sort of ID (raw
file node number, md5sum of some part of the file...)

I know this is not easy and I don't ask such thing for
tomorrow (but for yesterday it would be fine :-)))

thanks
jdd

--
http://www.dodin.net
http://dodin.org/galerie_photo_web/expo/index.html
http://lucien.dodin.net
http://fr.susewiki.org/index.php?title=G%C3%A9rer_ses_photos
_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users
Reply | Threaded
Open this post in threaded view
|

Re: apply keywords/tags from one album to contents of another?

Bugzilla from tomalbers@kde.nl
Op zaterdag 4 februari 2006 22:29, schreef jdd:

> I think there is a general problem related to this one. that
> is relation between digikam and other system actions.
>
> for example, I use a script to rename the files (simple mmv
> "*" XXXX#1). The files are the same, but digikam don't know.
>
> so if I forget to do so before tagging or simply creating
> the album icon, the data is lost.
>
> there should be two ways (at user will) to identify the
> files in digikam.
>
> * first by name (a file could be modified, but keep its
> digikam stuff is the name is kept the same) - this need some
> sort of file name storage,
>
> * second by file content. It should be possible to keep a
> file consistent through changing name. some sort of ID (raw
> file node number, md5sum of some part of the file...)
>
> I know this is not easy and I don't ask such thing for
> tomorrow (but for yesterday it would be fine :-)))
>
> thanks
> jdd

I believe similar reports exist already in bugs.kde.org. Please check and add
a comment if needed. md5 could be a nice solution here.

Toma

_______________________________________________
Digikam-users mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-users

attachment0 (196 bytes) Download Attachment