This is a custom script to extend Automatic1111 StableDiffusion WebUI, in order to generate useful SVG or PDF icons given by your prompts.
It tunes your prompts in that way to create suitable images to be vectorizied by the POTRACE command line tool. The resulting SVG or PDF file is stored next to your png files in output/samples (default).
prompt | PNG | SVG |
---|---|---|
Happy Einstein | ![]() |
|
Mountainbike Downhill | ![]() |
|
coffe mug in shape of a heart | ![]() |
|
Headphones | ![]() |
New: Added Visual Styles - RadioButtons provided by the script. Edit the script to extend of modify Stuff like Illustration, Tattoo, Anime etc, to save your time finding prompts on your own. If nothing matches, select "None - promp only" and have back full control.
New: Linux and Mac support handling POTRACE for you
If you're running under WSL, Ubuntu or another Linux distro you will need to install potrace.
Run sudo apt install potrace
.
Run brew install potrace
. Ensure potrace
is in your PATH so that you could run in simply by calling from a command terminal.
At execution time, the script checks if your have
Version 0.3: