Convert SVG to EPS or PNG from command line

To use SVG in Overleaf or LaTeX without \usepackage{svg}, convert SVG to EPS or PNG. This may be needed for some journals that don’t allows using extra packages like svg.

Convert SVG to EPS: vector graphics conversion at full quality from the command line (no GUI). Imagemagick doesn’t seem to be able to do this, making a gigantic raster EPS. Inkscape does the vector SVG to EPS conversion well.

inkscape -E out.eps in.svg

Convert SVG to PNG (raster) with

inkscape -e out.png in.svg

See man inkscape for more options e.g. to select PNG resolution.