Are there any native tools for SVG conversion on OS X? [closed]

How can I convert SVG image to something raster? Are there any native [command-line] tools on OS X that can do that? I am able to open them in Safari or Firefox, but doing "Save as..." only proposes original (.svg) or web-archive formats and no rasterized image format.


Solution 1:

You can do this with Inkscape:

/Applications/Inkscape.app/Contents/Resources/script --without-gui --export-png=raster-image.png  source-image.svg

To change output resolution you can set the DPI value:

/Applications/Inkscape.app/Contents/Resources/script --without-gui --export-png=raster-image.png --export-dpi=200  source-image.svg

Here are more command line options.

Solution 2:

Try Gapplin. It works for me and creates PNG and JPG files from SVG. Simple and effective.

If you have a lot of SVG files to convert, ImageMagick is probably your best bet (available directly from imagemagick.org or via Homebrew).