ImageSizeInfoFunctions is an extension to MediaWiki that gives two parser functions returning width and height size of a given image, available in the wiki.
- Download this repository and place the contents in
extensions/ImageSizeInfoFunction/
(in your root MediaWiki directory) - Add
wfLoadExtension('ImageSizeInfoFunction');
to LocalSettings.php to include the extension
Full documentation on how to use this extension is available at the official MediaWiki extension page.