ComfyPilotComfyPilot
工作流 / 矢量 / Ideogram Vector 1:图像转 SVG
Ideogram Vector 1:图像转 SVG

Ideogram Vector 1:图像转 SVG

Ideogram Vector 1: Image to SVG

使用 Ideogram Vector 1 将位图转换为完全可编辑的 SVG,并保存为一个矢量文件。非常适合将标志、扁平插画、图案和线稿转换为干净路径,在任何尺寸下都保持清晰,细节模式可选择保留大块纯色区域或更精细的颜色区域。照片也可以处理,但会转换为许多小路径,因此具有大面积纯色和透明背景的干净源文件矢量化效果最佳。

矢量 4 个节点 1 个输入 55 次使用 ComfyUI ≥ 0.42.5 ComfyUI 6 KB

下载工作流 JSON 查看官方来源

下载后把文件拖进 ComfyUI 窗口即可打开。

节点构成

SaveSVGNode × 1
IdeogramVectorImageToSVGApi × 1
LoadImage × 1
MarkdownNote × 1

官方标注的模型

Ideogram

工作流 JSON

和上面「下载工作流 JSON」是同一份文件。

1{
2 "id": "7f887c70-e5a5-47c7-8447-847a8913ddda",
3 "revision": 0,
4 "last_node_id": 5,
5 "last_link_id": 3,
6 "nodes": [
7 {
8 "id": 2,
9 "type": "SaveSVGNode",
10 "pos": [
11 457.8228515625,
12 130
13 ],
14 "size": [
15 570,
16 540
17 ],
18 "flags": [],
19 "order": 3,
20 "mode": 0,
21 "inputs": [
22 {
23 "name": "svg",
24 "type": "SVG",
25 "link": 2
26 }
27 ],
28 "outputs": [
29 {
30 "name": "svg",
31 "type": "SVG",
32 "links": null
33 }
34 ],
35 "properties": {
36 "Node name for S&R": "SaveSVGNode"
37 },
38 "widgets_values": [
39 "svg/Ideogram_vector_1_image_to_svg"
40 ],
41 "widgets_values_named": {
42 "filename_prefix": "svg/Ideogram_vector_1_image_to_svg"
43 }
44 },
45 {
46 "id": 3,
47 "type": "IdeogramVectorImageToSVGApi",
48 "pos": [
49 106,
50 130
51 ],
52 "size": [
53 303.8228515625,
54 82
55 ],
56 "flags": [],
57 "order": 2,
58 "mode": 0,
59 "inputs": [
60 {
61 "name": "model.image",
62 "type": "IMAGE",
63 "link": 3
64 }
65 ],
66 "outputs": [
67 {
68 "name": "SVG",
69 "type": "SVG",
70 "links": [
71 2
72 ]
73 }
74 ],
75 "properties": {
76 "Node name for S&R": "IdeogramVectorImageToSVGApi"
77 },
78 "widgets_values": [
79 "ideogram-vector-1",
80 "default"
81 ],
82 "widgets_values_named": {
83 "model": "ideogram-vector-1",
84 "model.mode": "default"
85 },
86 "color": "#432",
87 "bgcolor": "#653"
88 },
89 {
90 "id": 4,
91 "type": "LoadImage",
92 "pos": [
93 -302,
94 130
95 ],
96 "size": [
97 360,
98 520
99 ],
100 "flags": [],
101 "order": 0,
102 "mode": 0,
103 "inputs": [],
104 "outputs": [
105 {
106 "name": "IMAGE",
107 "type": "IMAGE",
108 "links": [
109 3
110 ]
111 },
112 {
113 "name": "MASK",
114 "type": "MASK",
115 "links": null
116 }
117 ],
118 "properties": {
119 "Node name for S&R": "LoadImage"
120 },
121 "widgets_values": [
122 "kid_onknight_dragon.png",
123 "image"
124 ],
125 "widgets_values_named": {
126 "image": "kid_onknight_dragon.png",
127 "upload": "image"
128 }
129 },
130 {
131 "id": 5,
132 "type": "MarkdownNote",
133 "pos": [
134 -770,
135 130
136 ],
137 "size": [
138 430,
139 600
140 ],
141 "flags": [],
142 "order": 1,
143 "mode": 0,
144 "inputs": [],
145 "outputs": [],
146 "properties": [],
147 "widgets_values": [
148 "# Ideogram Vector 1: Image to SVG\n\nTraces a bitmap into a fully editable **SVG** you can open in any vector editor. Best for logos, flat illustration, patterns and line art. Photographs work too, but a photo turns into thousands of tiny paths, so the file gets heavy and hard to edit by hand.\n\n## Input Asset\n\n- [kid_onknight_dragon.png](https://raw.githubusercontent.com/Comfy-Org/workflow_templates/refs/heads/main/input/kid_onknight_dragon.png)\n\n## Source image\n- Start from a clean image with large areas of flat color and clear edges. The vectorizer follows what it sees, including grain, gradients and background clutter.\n- Transparent areas keep their alpha, so a cut-out PNG stays cut out.\n\n## Detail control\n- `mode` = `simple` outlines fewer, larger color blocks, which gives a lighter and flatter SVG.\n- `mode` = `default` keeps finer detail and more color blocks, so the result stays closer to the source.\n\n## Output\nThe node emits an SVG rather than a raster image: connect it to **Save SVG** to write a `.svg` file to disk.\n\n## Notes\n- This is an API node: sign in and keep credits available ([API node overview](https://docs.comfy.org/tutorials/partner-nodes/overview)).\n"
149 ],
150 "widgets_values_named": {
151 "text": "# Ideogram Vector 1: Image to SVG\n\nTraces a bitmap into a fully editable **SVG** you can open in any vector editor. Best for logos, flat illustration, patterns and line art. Photographs work too, but a photo turns into thousands of tiny paths, so the file gets heavy and hard to edit by hand.\n\n## Input Asset\n\n- [kid_onknight_dragon.png](https://raw.githubusercontent.com/Comfy-Org/workflow_templates/refs/heads/main/input/kid_onknight_dragon.png)\n\n## Source image\n- Start from a clean image with large areas of flat color and clear edges. The vectorizer follows what it sees, including grain, gradients and background clutter.\n- Transparent areas keep their alpha, so a cut-out PNG stays cut out.\n\n## Detail control\n- `mode` = `simple` outlines fewer, larger color blocks, which gives a lighter and flatter SVG.\n- `mode` = `default` keeps finer detail and more color blocks, so the result stays closer to the source.\n\n## Output\nThe node emits an SVG rather than a raster image: connect it to **Save SVG** to write a `.svg` file to disk.\n\n## Notes\n- This is an API node: sign in and keep credits available ([API node overview](https://docs.comfy.org/tutorials/partner-nodes/overview)).\n"
152 },
153 "color": "#222",
154 "bgcolor": "#000"
155 }
156 ],
157 "links": [
158 [
159 2,
160 3,
161 0,
162 2,
163 0,
164 "SVG"
165 ],
166 [
167 3,
168 4,
169 0,
170 3,
171 0,
172 "IMAGE"
173 ]
174 ],
175 "groups": [],
176 "config": [],
177 "extra": {
178 "ds": {
179 "scale": 0.5608436709786263,
180 "offset": [
181 1271.727737984045,
182 277.1170571122846
183 ]
184 },
185 "frontendVersion": "1.58.0"
186 },
187 "version": 0.4
188}