img: Add back support for SVG images, bypassing ImageMagick and simply passing the...
authorSimon McVittie <smcv@debian.org>
Fri, 6 May 2016 05:57:12 +0000 (06:57 +0100)
committerSimon McVittie <smcv@debian.org>
Fri, 6 May 2016 05:57:12 +0000 (06:57 +0100)
commit984ba82f1bea778de8d2b98593b470d651749d73
tree39b6502568b2c3fc9dd4b01a026fefd873acade8
parent7ff6221ac9ef5164c9b5ab6cd7d16af91ef0871b
img: Add back support for SVG images, bypassing ImageMagick and simply passing the SVG through to the browser

SVG scaling by img directives has subtly changed; where before size=wxh
would preserve aspect ratio, this cannot be done when passing them through
and so specifying both a width and height can change the SVG's aspect
ratio.

(This patch looks significantly more complex than it was, because a large
block of code had to be indented.)

[smcv: drop trailing whitespace, fix some spelling]
IkiWiki/Plugin/img.pm
debian/changelog
doc/ikiwiki/directive/img.mdwn