Inkscape scripting
Looking at how best to script Inkscape to rasterize svg source files.
Inkscape can be scripted via Python, but for the project at hand this might be more than we need. I suspect that we can write a much simpler bash script that will do everything by calling inkscape from the CLI and using built-in functions. A bit of reading here: showed me that I can do something like this:
/Applications/Inkscape.app/Contents/Resources/bin/inkscape -D -e ~/Desktop/11.png --export-area-canvas ~/Desktop/11.svg and produce a png that retains the canvas bounding box. If I drop the --export-area-canvas bit I lose the bounding box and have a zero-margin png. I can adjust the width and height with -w and -h in the usual way: pass it a width and let Inkscape do the math to arrive at a suitable height.