Malisius / booru2prompt

An extension for stable-diffusion-webui to convert image booru posts into prompts
58 stars 8 forks source link

Use PIL instead of temp image folder + Improved settings.json #16

Open vtvrv opened 1 year ago

vtvrv commented 1 year ago

Images are now stored in memory instead of saved to tempimage folder. This fixes issue on Linux where images were not saves in tempimage folder but instead ./tempimage\temp0.jpg" with "\" directory separator in filename.

Improved settings .json. Before accessing Danbooru's username in dict settings would be done with

for booru in settings["boorus"]: if booru["name"] == "Danbooru": return booru["username"]

now is

settings["boorus"]["Danbooru"]["username"]