vtracer numpy Pillow torch PyMuPDF potracer

Huge thanks to visioncortex and potracer for this amazing thing! Original repository: https://github.com/visioncortex/vtracer and https://github.com/tatarize/potrace
Image QuantizeSVG String to SVG BytesIOSVG BytesIO to SVG StringSVG String Path SimplifyImage to SVG String BW_Potracer(thanks@ImagineerNL, Optimized integration based on his work)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.
/ComfyUI/custom_nodes/ folder.git clone https://github.com/Yanick112/ComfyUI-ToSVG/
ComfyUI-ToSVG folder.“`shell
path/to/ComfUI/python_embeded/python.exe -s -m pip install -r requirements.txt
“`
“`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.
ConvertRasterToVector to handle the conversion of raster images to SVG format with various parameters for customization.SaveSVG to save the resulting SVG data into files.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.