File size: 1,281 Bytes
c336648
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# Danbooru Prompt
Extension that gets tags for Danbooru images links in AUTOMATIC1111's Stable Diffusion webui

# Credit:
A lot of code I used for this project came from this project:
https://github.com/antis0007/sd-webui-gelbooru-prompt


@Malisius  repo's showed me a better way to scrape the tags.
https://github.com/Malisius/booru2prompt

@z4m1  contributed on this repo


## What is this?
This is a small extension I wrote to let you automatically pull the tags for any saved Danbooru image link in [AUTOMATIC1111's stable-diffusion-webui](https://github.com/AUTOMATIC1111/stable-diffusion-webui)

## Additional Info:

### How does this work?

Example:
All you need to do is hit the "Get Tags" button, and it will put the fetched tags into the text prompt textbox.
You can specify wether to include the artist or the characters tags.
> <img width="608" alt="image" src="https://github.com/EnsignMK/danbooru-prompt/assets/91480302/a214037e-d322-4c87-a33d-12a62274341c">

The tags will be shown here, img2img is also supported:
<img width="1001" alt="image" src="https://github.com/EnsignMK/danbooru-prompt/assets/91480302/0e4497cf-c309-41c7-b72d-122e09edde6d">




You can now use these tags in any prompt crafting you'd like to do. Enjoy!