Translations:Manual:$wgThumbnailBuckets/5/en

$ThumbnailBuckets must be set to a list of thumbnail widths; whenever a new thumbnail needs to be rendered, MediaWiki will find the smallest bucket which is larger than the target width + $distance but smaller than the original, and it will scale that thumbnail down to the target size instead of scaling down the original file.