FIX - use ImageMagick to determine size of SVG images (PR #12230)

SVG files can have dimensions expressed in inches, centimeters, etc., which may lead to the dimensions being misinterpreted (e.g. “8in” ends up as 8 pixels).

If the file type is svg, ask ImageMagick to work out what size the SVG file should be rendered on screen.

NOTE: The pencil.svg file was obtained from https://freesvg.org/1534028868, which has placed the file in to the public domain.

GitHub

This pull request has been mentioned on Discourse Meta. There might be relevant details there:

This pull request has been mentioned on Discourse Meta. There might be relevant details there: