File size: 1,958 Bytes
1e3b872 |
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 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 |
# ComfyUI-ToSVG
Huge thanks to visioncortex for this amazing thing! Original repository: https://github.com/visioncortex/vtracer
## VTracer ComfyUI Non-Official Implementation
Welcome to the unofficial implementation of the ComfyUI for VTracer. This project converts raster images into SVG format using the VTracer library. It's a handy tool for designers and developers who need to work with vector graphics programmatically.
### Installation
1. Navigate to your `/ComfyUI/custom_nodes/` folder.
2. Run the following command to clone the repository:
```shell
git clone https://github.com/Yanick112/ComfyUI-ToSVG/
```
4. Navigate to your `ComfyUI-ToSVG` folder.
- For Portable/venv:
- Run the following command:
```shell
path/to/ComfUI/python_embeded/python.exe -s -m pip install -r requirements.txt
```
- With system Python:
- Run the following command:
```shell
pip install -r requirements.txt
```
Enjoy setting up your ComfyUI-ToSVG tool! If you encounter any issues or need further help, feel free to reach out.
### Partial Parameter Description
- Filter Speckle (Cleaner)
- Color Precision (More accurate)
- Gradient Step (Less layers)
- Corner Threshold (Smoother)
- Segment Length (More coarse)
- Splice Threshold (Less accurate)
### Features
- Converts images to RGBA format if necessary
- Support batch conversion
- node `ConvertRasterToVector` to handle the conversion of raster images to SVG format with various parameters for customization.
- node `SaveSVG` to save the resulting SVG data into files.
### Workflow screenshot
- 
- 
- 
### What's next?
- [ ] Add SVG preview node
---
Enjoy converting your raster images to SVG with this handy tool! If you have any questions or need further assistance, don't hesitate to reach out.
|