currently, the file extensions that cause an external link to be rendered as an image if $wgAllowExternalImages is true is hardcoded in Parser::EXT_IMAGE_REGEX. It would be much nicer if it was derived from $wgFileExtensions. Not all allowed file extensions are images, but the ones that are can be identified using MimeMagic::guessTypesForExtension($mime) and MimeMagic::findMediaType($mime).
Version: 1.18.x
Severity: enhancement