I normally reach for
imagemagick but its SVG to PNG rendering is reputedly not that great. Here's a tip from a colleague of mine, noting that
-z forces non-gui usage,
$ apt-get install inkscape $ inkscape -z -e hexagons.png -w 1024 -h 1024 ./hexagons.svg
You can also checkout its man page.