PNG 轉 SVG:如何分辨真正的向量圖與包裹點陣圖的檔案
PNG to SVG: how to tell a real vector from a wrapped image
PNG 轉成 SVG 後,檔案仍可能只是把原始像素嵌入 SVG 容器;真正的向量圖則由路徑、圓形和填色構成,放大後不會模糊。文中的 AI 轉換器可處理最多 25 MB 的 PNG、JPG、WebP、GIF 或 HEIC,並將圖像轉繪為向量路徑。每次轉換需用 1 個點數,免費帳戶每日獲發點數。
You convert a logo from PNG to SVG, open the file, and it still goes blurry when you zoom in. The file ends in .svg, but nothing inside it is a vector.
This happens a lot. Some converters do not trace the image at all. They put the original pixels inside an SVG wrapper.
How do you check?
Open the SVG in a text editor. A wrapped image looks like this:
<svg xmlns="http://www.w3.org/2000/svg" width="512" height="512">
<image href="data:image/png;base64,iVBORw0KGgo..." width="512" height="512" />
</svg>
One <image> tag and a long block of base64 text. That is a PNG with a new file name. It will not scale, a cutting machine cannot cut it, and you cannot change its colours.
A real vector file is made of shapes:
<path d="M24 8c8.8 0 16 7.2 16 16s-7.2 16-16 16S8 32.8 8 24 15.2 8 24 8z" fill="#1d4ed8" />
Paths, circles and fills. No pixels.
How do you get real paths?
Use a converter that rebuilds the image as shapes. In our AI image-to-SVG converter:
- Upload a PNG, JPG, WebP, GIF or HEIC file, up to 25 MB.
- The AI reads the shapes, edges and colours and draws them as vector paths.
- Check the result and download it.
Each conversion costs 1 credit, and free accounts get credits every day. SVG files are turned away, since they are already vectors.
What gives the best result?
- Start big. A sharp, high-resolution image gives cleaner edges than a small one.
- Crop first. Remove what you do not want in the vector, so it does not become extra paths.
- Logos and icons work best. Flat colours and clear edges turn into neat shapes. Photos convert too, but with many more paths.
What can you do with the file?
Open it in our editor on desktop to fix a colour or remove a stray shape. Download it as SVG, or as PDF, EPS, DXF or AI for print, design apps and cutting machines.
For a step-by-step walkthrough, see convert PNG to SVG online in 3 steps. If you want to compare tools first, we tested seven in the best free SVG converters in 2026.
Before you use an SVG, open it and look for paths. If you only find one <image> tag, the file is still a PNG.
來源:DEV Community · dev.to