potrace 1.16. Transforms bitmaps into vector graphics. Usage: potrace [options] [filename...] General options: -h, --help - print this help message and exit -v, --version - print version info and exit -l, --license - print license info and exit File selection: - an input file -o, --output - write all output to this file -- - end of options; 0 or more input filenames follow Backend selection: -b, --backend - select backend by name -b svg, -s, --svg - SVG backend (scalable vector graphics) -b pdf - PDF backend (portable document format) -b pdfpage - fixed page-size PDF backend -b eps, -e, --eps - EPS backend (encapsulated PostScript) (default) -b ps, -p, --postscript - PostScript backend -b pgm, -g, --pgm - PGM backend (portable greymap) -b dxf - DXF backend (drawing interchange format) -b geojson - GeoJSON backend -b gimppath - Gimppath backend (GNU Gimp) -b xfig - XFig backend Algorithm options: -z, --turnpolicy - how to resolve ambiguities in path decomposition -t, --turdsize - suppress speckles of up to this size (default 2) -a, --alphamax - corner threshold parameter (default 1) -n, --longcurve - turn off curve optimization -O, --opttolerance - curve optimization tolerance (default 0.2) -u, --unit - quantize output to 1/unit pixels (default 10) -d, --debug - produce debugging output of type n (n=1,2,3) Scaling and placement options: -P, --pagesize - page size (default is letter) -W, --width - width of output image -H, --height - height of output image -r, --resolution [x] - resolution (in dpi) (dimension-based backends) -x, --scale [x] - scaling factor (pixel-based backends) -S, --stretch - yresolution/xresolution -A, --rotate - rotate counterclockwise by angle -M, --margin - margin -L, --leftmargin - left margin -R, --rightmargin - right margin -T, --topmargin - top margin -B, --bottommargin - bottom margin --tight - remove whitespace around the input image Color options, supported by some backends: -C, --color #rrggbb - set foreground color (default black) --fillcolor #rrggbb - set fill color (default transparent) --opaque - make white shapes opaque SVG options: --group - group related paths together --flat - whole image as a single path Postscript/EPS/PDF options: -c, --cleartext - do not compress the output -2, --level2 - use postscript level 2 compression (default) -3, --level3 - use postscript level 3 compression -q, --longcoding - do not optimize for file size PGM options: -G, --gamma - gamma value for anti-aliasing (default 2.2) Frontend options: -k, --blacklevel - black/white cutoff in input file (default 0.5) -i, --invert - invert bitmap Progress bar options: --progress - show progress bar --tty - progress bar rendering: vt100 or dumb Dimensions can have optional units, e.g. 6.5in, 15cm, 100pt. Default is inches (or pixels for pgm, dxf, and gimppath backends). Possible input file formats are: pnm (pbm, pgm, ppm), bmp. Backends are: svg, pdf, pdfpage, eps, postscript, ps, dxf, geojson, pgm, gimppath, xfig.