I do something similar, but manually, in Inkscape. It has command-line flags to export a PNG rendered only from the part of a SVG that is within the bounds of a specified object. I often create a hidden layer to hold rectangles marking areas I will want to export frequently and then write a script/Makefile to run the export command for each rectangle.
Very helpful for making videogame assets and exporting them in parts to Godot
>Please fork for changes
I like this direct and sensible approach.