SVGSlice is now working as an extension. If anyone is interested in getting this into inkscape's officially included extensions, would it be possible to do this for 42.1, or is that going to be bugfix-only?
There is one small Inkscape issue, which I'm currently working around.
I'm calling inkscape from within an extension, like so:
inkscape --without-gui --export-id="itemtoexport" --export-png="pngfilename" "svgfilename"
But this outputs the following:
** (inkscape:25789): WARNING **: Format autodetect failed. The file is being opened as SVG.
Strangely, this doesn't happen on the same file if I load it directly from the command line with inkscape "svgfilename".
At the moment, I'm redirecting the errors from the inkscape call to /dev/null, since inkscape will display the warnings as an extension failure. However, I'd prefer not to have to do this, in case inkscape DOES have something important to warn about.
Is this something I can prevent, or a bug that can be fixed for 42.1 somehow, regardless of whether the extension can make that release?