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.
closed as off-topic by bmike♦ Aug 28 '15 at 21:15
This question appears to be off-topic. The users who voted to close gave this specific reason:
- "Basic Customer Support or questions asking to recommend or find off-site resources (Mac/book/software/tutorial) are off-topic for Ask Different as they tend to attract opinionated answers and spam. Instead, edit to clearly describe your problem and the research done so far to solve it." – bmike
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.
https://cloudconvert.org/svg-to-png - was fastest way for me.
it's not my site.
One (wonky) option would be to render it in Safari and take a screenshot of the result, although that's obviously not a good solution.
Sadly there's little SVG support in OS X so far apart from Safari, Preview.app (the obvious choice for image format conversion) can't render it and I'm not aware of any bundled command line tools that can either.
You can work .svg files with the os x version of inkscape which works pretty cool on mac. I've been working with gimp and inkscape instead of adobe photoshop and adobe illustrator for a while and I feel pretty comfortable. Or you can use inkscape just to convert the file... https://inkscape.org/en/