Is batch-tagging available?
|
klp29
![]()
Joined: 2006-03-26
Posts: 41 |
Posted: Thu, 2009-07-30 13:37
|
|
I'm migrating 5.000+ images from a "not so good"-gallery to "the super-duper-Gallery3" I would very much like to batch tag or mass tag, call it what ever you like, so that I can give, say, all 700 images of BMW's the tag "bmw" instead of having to do this manually. Possible? |
|
| Login or register to post comments |


Posts: 6019
Short answer is that we're going to be doing some of this with the organize module, which is getting rewritten for the next release. Longer answer is that we'll probably not come up with exactly what you need. It would be easy to write a module to do this, though.. try seeing if you can get rWatcher (not a gallery developer, but he's written a slew of gallery3 modules already) to code something up for you. Also, please file a feature request!
---
Problems? Check gallery3/var/logs
bugs/feature req's | upgrade to the latest code | use git | help! vote!
Posts: 9283
We're going to burn rWatcher out
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 216
How do you picture this working? Are you looking for something that would allow you to quickly batch tag every photo in a single album with "BMW", or something else?
Posts: 41
Hi rWatcher
Well, I think of it as going into an album and making all images in that given album have a certain set of tags
For instance, if I have an album with 200 images of BMWs and 150 images of Ferraries, it seems to me NOW that I can assign different tags to each image FOLDER, but not to all the images IN that folder, without manually opening every single one of the images and adding the tag manually.
Perhaps it would be as easy as to having a radiobutton for "please add these tags to all images in the folder", when assigning tags to an image folder?
This way, we could easily put "general" tags like "Ferrari" on all Ferrari-images in "one mouseclick".
What do you think?
Ps. This would, indeed, be a SUPER effective SEO-enhancement of G3 when used together with the meta-module you did for us in http://gallery.menalto.com/node/89326 ;)
Posts: 216
Here you go -- This will create an additional "Batch Tag" input box on the sidebar for albums. Whatever tag(s) you enter into that box will be applied to all non-album items in that album (separate multiple tags with commas).
It can also be downloaded from my github account at:
http://github.com/rWatcher/gallery3-contrib/tree/master/modules/batchtag
And I've set up a wiki page here:
http://codex.gallery2.org/Gallery3:Modules:batchtag
Posts: 6019
Pulled!
---
Problems? Check gallery3/var/logs
bugs/feature req's | upgrade to the latest code | use git | help! vote!
Posts: 41
MAN this is nice!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
:] Kenneth WedMore Lund
http://www.bryllup.dk
http://www.crazynight.dk
Posts: 231
I had a bug while browsing tag.
to fix it, I added in helpers/batchtag_theme.php
the condition
if ( !($theme->tag()) )
Don't know if it's the best way, but it's working!
Posts: 216
Are you using Gallery Beta 2 or experimental? I'm unable to reproduce the bug using the experimental version of Gallery 3. Just to be on the safe side, I did add a "if (!$theme->item()) { return; }" line to it, which I think should do the same thing as your code, but should also prevent it from loading on other types of non-album pages besides tags.
Posts: 231
Hi,
Yes I was using B2...sorry!
I did the upgrade yesterday to experimental version!
Thanks
Posts: 41
"Experimental version" - what's that?
:] Kenneth WedMore Lund
http://www.bryllup.dk
http://www.crazynight.dk
Posts: 231
have a look here
http://codex.gallery2.org/Gallery3:Upgrading
Posts: 9283
rWatcher, I was looking at other tickets and noticed this.
https://sourceforge.net/apps/trac/gallery/ticket/821
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 216
That's actually by design, as I didn't want to accidentally batch-tag a sub-sub-sub album that I forgot existed
I guess I can add in a check box or something to the form to include the contents of sub albums as well.
Posts: 42
That would be great, if I end up updating to G3 being able to use the new tagging stuff would be one of the main attractions. Thanks!
Posts: 216
Done! There is now a checkbox for including items in sub-albums.
Posts: 216
I've created an updated version of BatchTag:
- Merged in ckieffer's CSS changes for Gallery 3 Git
- Updated for the new sidebar code in Gallery 3 Git
- Tested everything against current git (as of commit b6c1ba7ea6416630b2a44b3df8400a2d48460b0a)
It is attached here, and has been uploaded to my github account.
Posts: 7
Very nice module! I've been working with it, and I had it working on a prior installation. Yesterday I reinstalled the latest G3 Git version, and the latest Git version of batchtag, and when I activate module, I don't see the options in the sidebar on any pages. The theme I'm using is "night wind", but I also tried it with "wind" and it didn't work their either. Is there somewhere I can check to see why it's not showing up?
Any hints would be appreciated. Thanks!
Posts: 216
You might need to manually add it to the sidebar -- Try logging in as an admin, and then select Appearance -> Manage Sidebar from the admin menu and make sure Batch Tag is listed under "Active Blocks".
Posts: 7
Thanks for the quick reply! Unfortunately, I don't see it under Available or Active blocks when managing the sidebar. Hmmm. I've de-activated and re-activated it, but that didn't help. I've deactivated, deleted the dir under modules, reuploaded and reactivated, but still no sign of Batch Tag.
My blocks_site.sidebar is as follows, in case it helps.
a:4:{i:0;a:2:{i:0;s:4:"info";i:1;s:8:"metadata";}i:1;a:2:{i:0;s:3:"tag";i:1;s:3:"tag";}i:2;a:2:{i:0;s:11:"image_block";i:1;s:12:"random_image";}i:3;a:2:{i:0;s:3:"rss";i:1;s:9:"rss_feeds";}}Do you have a sample that contains a reference to batchtag (if it should be there)? Any other hints on how that gets built?
Posts: 216
That's weird, it should show up automatically. Just to confirm that everything was downloaded/uploaded properly, do you have a batchtag_block.php file in your modules/batchtag/helpers directory?
Posts: 7
That's it! The Git version I grabbed didn't work. I ended up replacing the whole thing with the version in the ZIP file above, and all is working well.
Thanks!
Posts: 151
I am in the process of tagging and for sure it takes a while. This module works like a charm. Thanks big time
on latest git and the above zip
all the best
HB
Posts: 151
Nice feature could be:
to remove tags as well
Select 2 or more images within an album for adding tag. Maybe in the album organizer
all the best
HB