

Potrace "$File.pnm" -s -o "$File.svg" # PNM to SVG Ykarikos proposes a script png2svg.sh that I have improved: #!/bin/bashĮcho >&2 "The first argument ($File_png)"Įcho >&2 "must be a file having a size greater than zero"Ĭonvert "$File_png" "$File.pnm" # PNG to PNM Temporary file = 2017.pnm potrace 2017.pnm -s -o 2017.svg potrace -o file.svg => Write output to file.svg.Potrace file.pnm -s -o file.svg # PNM to SVG

Therefore, first convert from PNG to PNM: convert file.png file.pnm # PNG to PNM Potrace does not support PNG as input file, but PNM.
