Convert SVG to EPS or PNG with Inkscape on the command line
To use SVG in Overleaf or LaTeX without \usepackage{svg}
convert SVG to EPS or PNG as below.
This may be needed for some journals that don’t allows using extra packages like svg
.
SVG to EPS
inkscape -E out.eps in.svg
gives vector graphics conversion at full quality from the command line (no GUI).
Imagemagick doesn’t seem to be able to do this (Imagemagick makes gigantic raster EPS), but Inkscape does the vector SVG to EPS conversion well.
SVG to PNG
You can also convert SVG to PNG (raster) with
inkscape -e out.png in.svg
See man inkscape
for more options e.g. to select PNG resolution.
Leave a Comment