Open a logo, drawing or photo, or use the sample, then click Start. Pick a style and the number of colours, then Save SVG.
把影像轉成向量(SVG)
「影像轉向量」會在瀏覽器中把您的圖片描成帶平滑 Bézier 曲線的填色形狀,因此檔案不會被上傳。挑選「標誌」、「插圖」、「照片」或「黑白」,設定顏色數量、細節和平滑度,再把結果儲存為任何尺寸都保持清晰的 SVG。 Open a logo, drawing or photo, or use the sample, then click Start. Pick a style and the number of colours, then Save SVG.
How it works
- 開啟標誌、繪圖、圖示或照片,或使用樣本。
- 點一下「開始」,再挑選「標誌」、「插圖」、「照片」或「黑白」,並設定「顏色」、「細節」、「平滑度」和「移除斑點」。
- 按「儲存 SVG」下載向量檔,或在編輯器中開啟,讓每種顏色各佔一個圖層。
圖片如何變成路徑
顏色會先用 k-means 分群收成調色盤(黑白則使用 Otsu 閾值)。小斑點會併入鄰近區域,然後每種顏色的區域會沿像素邊緣描出,包含孔洞。輪廓會被拉直,多餘的點會用 Ramer–Douglas–Peucker 演算法移除,其餘的點則以平滑 Bézier 曲線連接;急轉處會保持為角點。顏色會從面積最大疊到最小,因此相鄰形狀會密合、沒有空隙。
選擇合適的設定
「標誌」使用較少顏色、平滑曲線,並移除較多斑點:適合標誌、圖示和平面圖稿。「插圖」會為繪圖和漫畫保留較多顏色。「照片」使用較多顏色和細節,呈現色調分離、繪畫般的效果。「黑白」則做出乾淨的單色線條畫和剪影。「細節」決定路徑有多貼近畫面;「平滑度」會把角落變成曲線;「移除背景」會去掉邊緣周圍的顏色。顏色愈少、細節愈低,SVG 就愈小、愈乾淨。
Frequently asked questions
How do I convert an image to SVG?
Open the picture and click Start: it is traced into vector paths in your browser. Pick a style (Logo, Illustration, Photo or Black and white), set Colors, Detail and Smoothness until it looks right, then press Save SVG. The same tool is in the editor under AI → Image → Image to vector.
Which pictures vectorize best?
Logos, icons, cartoons, drawings, signatures and flat artwork with clear edges and few colours give the cleanest SVG. Photos work too, but become a posterized, painted look with many shapes: use the Photo style, more colours and higher detail.
How many colours should I use?
As few as the picture needs: 2 to 6 for most logos, 8 to 16 for illustrations, 16 to 32 for photos. Every colour is one path in the SVG, so fewer colours give a smaller file that is easier to edit.
Can I get a transparent background?
Yes. Turn on Remove background: the colour around the edge of the picture is left out of the SVG. A PNG with a transparent background keeps its transparency in the trace as well.
Can I edit the vector afterwards?
Yes. The SVG opens in Illustrator, Inkscape, Figma and other vector editors, with one path per colour. The pencil on this page, or Apply in the editor, opens the trace in the PictorX editor with one layer per colour, so you can recolour, hide or move each colour.
Ready to try it?
Open PictorX in your browser — no install, no credit card required to start.
前往編輯器