https://www.mediawiki.org/wiki/Help:Images#Size_and_frame says:
An image with frame always ignores the size specification, the original image
will be reduced if it exceeds the maximum size defined in user preferences.
However, as bug 53514 describes, the actual behavior seems to have regressed at some point. The code in includes/Linker.php to check the user preference for size (which seems to be the same as the thumbnail size preference) is unreachable. As presently written, framed images are always rendered at their "natural" size, *unless a height* is specified, in which case the height is honored (and the width, if any, ignored).
It's not entirely clear what the proper fix should be. There are three options:
- Leave the code as is, and update the spec on the wiki.
- If a height is specified, honor the height *and* width (conservative, should change few pages)
- Implement what I think was the original idea: *always* ignore the width and height, and limit the maximum image size with the user's thumbnail size preference.
Version: 1.23.0
Severity: normal