Tag Images from Galleries

This plugin automatically propagates gallery-level tags and performer associations down to individual images. Similar to Tag galleries from images, I just didnt like it coming from the bottom up and would rather it behave like the other auto-taggers.

Features

  1. Bulk Tag & Performer Synchronization
  2. Automatically copies tags and performers from galleries to all contained images.
  3. Avoids duplication by only adding missing tags or performers.
  4. Configurable Exclusions
  5. Option to exclude images with specific tags
  6. Option to skip already organized galleries
  7. Only updates images that are missing gallery-level tags or performers.

Installation

  1. Settings → Plugins → Available Plugins
  2. Add Source → Name: Sakotos Stash Repo
  3. Source URL: https://raw.githubusercontent.com/Servbot91/Sakotos-Stash-Repo/refs/heads/main/plugins/manifest.yml
  4. Click checkbox, Install
  5. Reload Plugins
2 Likes

This worked beautifully, thank you for making it!

I was starting to manually tag my images and then you come along and save me a load of work <3

1 Like

I like it very much, thank you @sakoto
I used to tag images manually, and it turned out to be a huge pain, so I stopped. I just added the studio and performers on the pics.
If it were possible to also transfer the studio, would a new line next to those do the trick?

gallery_tag_ids = {t["id"] for t in gallery["tags"]}
gallery_performer_ids = {p["id"] for p in gallery["performers"]}

A line looking like this on line 74?

gallery_studio_ids = {s["id"] for s in gallery["studios"]}

(I just kind of guessed after seeing your syntax)

Thanks for your answer.

Definitely doable. Might be a bit until I get around to it though.

Idk if you’re still alive, but I finally implemented this change along with increasing all mass tagger performance by about 90 or 95%.

You can read the PR here. Sorry it took so long.

1 Like

Big guy, you don’t plan to update your own Git?

And any plan to merge your repo source URL into one?

1 Like

Its actually really funny you say that because the reason I didnt commit to my own git is because I plan on making a unified manifest and repo to streamline everything. The task is long overdue and it needs to be done. It’ll probably happen this weekend.

1 Like

Thanks a bunch for taking my request into account. I’m still alive, and still appreciate your plugin a lot!

I was trying to update via the plugin settings in Stash (which is running in a container on my NAS), without success. I guess @sashi 's answer helps me understand why :slight_smile:

I’ll wait after the week-end, then. Could you please post here when you are done? That way I’ll know if I simply update or if I need to modify the repo URL.

Thank you.

1 Like

I hang out on Dscord if you want some more ‘live’ help.

1 Like

@PetrusRex @sashi

This has been completed, youre going to need to change your manifest pointer.

Installation

  1. Settings → Plugins → Available Plugins
  2. Add Source → Name: Sakotos Stash Repo
  3. Source URL: https://raw.githubusercontent.com/Servbot91/Sakotos-Stash-Repo/refs/heads/main/plugins/manifest.yml
  4. Click checkbox, Install
  5. Reload Plugins

Sashi I really appreciate it man. Unfortunately Ive come to hate discord and the cretins that use it and more so just use it for random dev questions. But I tend to avoid that place. This is the best place to reach me as I get emails and can respond more naturally as I get time.

What do you think would be the best method after updating the manifest pointer?

  • Remove the old plugin and reinstall the new one
  • Install the new version on top of the old one

It could be easier to just install, but is there a risk of conflicting files? Or does the new one use some of the old config file? Or maybe my install would need some files it may have created? I have to admit I don’t really know how stash plugins work…

Thank you very much!

For the sake of simplicty its best you remove the existing plugin (tagimagesfromgalleries) folder. Delete the existing manifest setup then install the new one. Theres no data persistence with this plugin so its fine. If you are using something like Ascension, then you would need to move your snapshot files. However that is not the case here. But you can always backup the plugin DIR just to be safe.

Works like a charm. Thanks a lot!

1 Like

Oh I already know you, the disc was more of offer for @petrusrex