30 'Standard thumb width',
35 'Standard thumb width',
42 'Standard thumb width (HiDPI 1.5x) - incorrect rounding',
47 'Standard thumb width (HiDPI 1.5x)',
52 'Standard thumb width (HiDPI 2x)',
57 'Non-standard thumb width',
65 'Standard image width/height pair',
67 [
'width' => 250,
'height' => 225 ],
70 'Standard image width/height pair',
72 [
'width' => 667,
'height' => 600 ],
75 'Standard image width where image does not fit aspect ratio',
80 'Implicit width from image width/height pair aspect ratio fit',
86 'Height-only is always non-standard',
97 $handlers = MediaWikiServices::getInstance()->getMainConfig()->get(
'ParserTestMediaHandlers' );
wfThumbIsStandard(File $file, array $params)
Returns true if these thumbnail parameters match one that MediaWiki requests from file description pa...
GlobalFunctions wfThumbIsStandard.
static provideThumbParams()
testIsStandard( $message, $expected, $params)
provideThumbParams