Friday, June 28, 2013

Inkscape command-line

I always export my R graphics images as .svg files into Inkscape, a wonderful open source SVG graphics editor to make them more beautiful and ready to be shared with team members and i recently found out that Inkscape (the SVG editor) has a few useful command-line options for non-interactive use. I’m mainly using the command-line for export options and conversions.
To convert an SVG file to an EPS file use
inkscape -f filename.svg -E filename.eps
to a PDF,
inkscape -f filename.svg -A filename.pdf
and to a PNG,

inkscape -f filename.svg -e filename.png

No comments:

Post a Comment

Add any comments if it helped :)