NativeSvgHandler ignores custom SVG image dimensions set while rendering SVG in Visual Editor. For example, in Visual Editor "File:sample.svg|20x20px" is rendered full-size (200x200), not 20x20. Mediawiki 1.31-1.34.
Topic on Extension talk:NativeSvgHandler
Appearance
It does not ignore custom SVG dimension. It is VE that ignore the size attributes set on the <img> tags. VE is taking the intrinsic size of the SVG. If your original SVG is 200x200px even though you set it is 20x20px in the wiki, VE will ignore the size and render as 200x200px instead.
I'm not familiar enough with VE to work out a fix on it, maybe someone can take a look?
Ideally this should be in a bugreport (if not already reported), so the relevant team is aware of that, and track the status of the problem.
Just installed it (MW 1.35.1) and on a Wiki using TinyMCE editor (on a shared hosting)
Wiki code: Display size works fine using the file/image command. Gallery also works, except for the "packed mode" it seems. So it's indeed a VE issue, but not a wiki issue.
TinyMCE Editor: It seems to be able to handle the SVG (including setting the size). However, this editor cannot handle gallery.
Anyhow, thanx for pushing SVG since this extensions allows to display crisp schemas. I need to do some more testing, but for the moment I adopted it :) - Daniel K. Schneider (talk) 17:20, 7 May 2021 (UTC)