Image-Vector-for-ComfyUI

Image-Vector-for-ComfyUI
★ 152

矢量化vtracerSVG导出ComfyUI节点
在ComfyUI中集成vtracer,将像素图转换为矢量(SVG),便于放大不失真、后续编辑与路径处理。
💡 把生成的像素图导出为SVG以便放大与编辑。
🍴 10 Forks💻 Python🔄 2024-06-23
📦
网盘下载
复制链接后前往夸克网盘下载
https://pan.quark.cn/s/79aaff81621b
📦 requirements.txt
vtracer
Wand
Pillow
torch
numpy
image
image
📄 README

Image-vector-for-ComfyUI

一个打包了vtracer的comfyui节点,用于把像素转矢量 a wrap-up comfyui nodes for concerting pix to raster

shot out to Vtracer!

https://github.com/visioncortex/vtracer

install guide安装指南:

  • cd comfyui/custom_nodes(导航至自定义节点文件夹)
  • git clone(把代码复制到本地)
  • pip install -r requirements.txt(安装依赖)
  • (if you are using comfyui-portable, first cd to the folder called”python_embeded”,then run “python.exe -m pip install”+”requirements” 如果你用的是comfyui便携版,先导航到python_embeded 这个文件夹,然后用python.exe -m pip install+你要安装的依赖)

  • install another requirement(https://imagemagick.org/archive/binaries/ImageMagick-7.1.1-33-Q16-HDRI-x64-dll.exe), details on: https://docs.wand-py.org/en/latest/guide/install.html#install-imagemagick-on-windows
  • restart comfyui(重启comfyUI)
  • user guide使用说明:

    SVG file 转换后效果:

    具体参数调整参考:https://github.com/visioncortex/vtracer

    just copy your dir to the output_dir,and click queue prompt, you will get your svg file in the folder

    你进需要把文件保存路径拷贝到output_dir,点击生成就可以获得文件