Background
Generaly speaking, the file description page provides:
- Link to and information about the 800x600px preview (its width/height, and file type if different from original, e.g. PNG for SVG, JPG for TIFF). This is determined by $wgImageLimits, taking the optoin set by the imagesize preference. This defaults to 800x600px. If the original is web safe, and if it is equal or smaller than 800x600px, then we use the original as the preview, no image scaling.
- Links to other sizes: 320px, 640px, 800px, 1024px, 1280px, 2560px. This is again $wgImageLimits, adjusted as needed based on portrait/landscape orientation, omitting the size of the preview, and omitting anything larger than the original size as we deny needless upscaling.
- Link to download the original, regardless of size or type.
Examples:
https://commons.wikimedia.org/wiki/File:Adam_Simmons,_Swaffham_Raceway,_2017-03-11.JPG
https://commons.wikimedia.org/wiki/File:Example.svg
Problem
https://commons.wikimedia.org/wiki/File:CorusSteelworks.jpg
... provides no links to any other resolutions, saying only:
No higher resolution available.
Where are the links to the 320px and 640px sizes?
There appears to be an inconsistency where feature that is provided is presented as "Other resolutions" when it is active. But when it is inactive, it claims that what it wil provide is "Higher resolutions".
Perhaps this was true once upon of time, I can see how maybe the default used to be the first entry of $wgImageLimits, and later the imagesize preference got introduced defaulting to the third entry? Thus losing the first two links for images under that threshold.
Other info
This came up in context of the Stockphoto gadget on Wikimedia Commons. It is failing to provide "Use this on the web" instructions because these links are missing for images such as this one:
https://commons.wikimedia.org/wiki/File:Ravenscar_-_geograph.org.uk_-_401270.jpg
I'm working on a workaround for the gadget, but this seems like a bug we should fix more generally as well.





