How to convert a svg image file to a high-quality png file in Linux?
inkscape
works great with vector images (better than ImageMagikk’s convert
).
Try this command to convert in.svg
to a 1000×1000 png image:
inkscape -z -e out.png -w 1000 -h 1000 in.svg
-z -e have been deprecated
inkscape always now seem to popup a GUI window in the most recent version. No way to rund from the cli silently anymore.
Any other recommendations?
inkscape –export-type=png in1.svg in2.svg in3.svg
inkscape input.svg -w 1000 -h 1000 -o output.png
More info is (now?) provided in inkscape –help
I use Inkscape 1.2.
And author is right, Inkscape exports SVG into raster formats better than ImageMagick’s convert which is terrible with SVG.