Replies: 1 comment 1 reply
-
Hey :3 i wrote a bash script that might help. It is not automated, yet! It works on files generated with/by dezgo.com. Write the prompt like comma separated tags, and no need for underscores between two or more word tags.
Oh, and it still depends on exiv2 for getting the image metadata and jq to generate the tags in json format. |
Beta Was this translation helpful? Give feedback.
-
reluce/szurubooru-toolkit might be usable for you. Or you can also create your own script to do this. I would recommend using python for this. I don't think anyone has made a standalone python library to interact with szurubooru, but you can use this code as a starting point for uploading images. Fernsicles/szurutagger might also be interesting for you, mostly to look at the szuruAPI.py file. Oh and the API docs are here. |
Beta Was this translation helpful? Give feedback.
-
I don't know if anyone can help me out with this one, but I'm looking for a way to have szurubooru (or a bash script) look in a particular directory and then post them to the site. I'd also like to see if there's a way to fetch EXIF data from the images to set the tags.
A little background on this: I use stable-diffusion to create images and all the prompts are stored in EXIF data of the jpg. Instead of me going into the site's upload portion of the webui manually, I'd like to see if I can automate all the data in EXIF and translate to suzubooru tags, and make a new post.
Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions