Nodes Browser
ComfyDeploy: How ComfyUI-ToSVG works in ComfyUI?
What is ComfyUI-ToSVG?
This project converts raster images into SVG format using the [a/VTracer](https://github.com/visioncortex/vtracer) library. It's a handy tool for designers and developers who need to work with vector graphics programmatically.
How to install it in ComfyDeploy?
Head over to the machine page
- Click on the "Create a new machine" button
- Select the
Edit
build steps - Add a new step -> Custom Node
- Search for
ComfyUI-ToSVG
and select it - Close the build step dialig and then click on the "Save" button to rebuild the machine
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
- Navigate to your
/ComfyUI/custom_nodes/
folder. - Run the following command to clone the repository:
git clone https://github.com/Yanick112/ComfyUI-ToSVG/
- Navigate to your
ComfyUI-ToSVG
folder.
- For Portable/venv:
- Run the following command:
path/to/ComfUI/python_embeded/python.exe -s -m pip install -r requirements.txt
- With system Python:
- Run the following command:
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.
What's next?
- ✅ Add SVG preview node
- ✅ Color and BW mode split
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.