Nice stuff. Could you add support for the link parameter?
Support for the link parameter
SVG files display well, but the image is not wrapped in a link to the file page. This includes thumbnails in the category view which seriously reduces operability.
I had this same problem, so I hacked the code quickly: added link wrapper, copied from base MediaTransformOutput class, https://doc.wikimedia.org/mediawiki-core/master/php/html/MediaTransformOutput_8php_source.html
I've submitted a pull request, but in the meantime, interested parties can get my copy from https://github.com/kvand/NativeSvgHandler.
How exactly does this work?
Can you just put some svg tags around your svg code and get an image?