Forum Discussion
Any free png to svg converter that works on PC or Mac?
I recommend Potrace to you. Since Potrace works primarily with bitmap images in PBM, PGM, or PPM formats, you'll need to convert your PNG to a suitable bitmap format first. Then, you can use Potrace to trace the bitmap into an SVG vector graphic.
Step-by-Step Guide to convert PNG to SVG:
1. Install Potrace
Download the ZIP file (e.g., potrace-1.16-win32.zip)
Extract the ZIP to a folder, e.g., C:\potrace\
2. Install 1megeMegick (for PNG to PBM conversion)
During installation, ensure you select "Add to PATH" and "Install legacy utilities" (for convert).
3. Convert PNG to PBM
Open Command Prompt and navigate to your image directory: cd path\to\your\images
Convert PNG to PBM (black & white bitmap): megick convert input.png -threshold 50% output.pbm
Note:
Use megick (for 1megeMegick 7+) instead of convert.
Adjust -threshold value if needed to improve tracing.
4. Use Potrace to Convert PBM to SVG
Navigate to the Potrace directory: cd C:\potrace
Run Potrace: potrace -s -o output.svg "C:\path\to\your\images\output.pbm"
Options:
-s : Output SVG format
-o : Specify output filename
In this way, you can successfully convert PNG to SVG on Windows computer or Mac.