Jump to content

Manual:$wgThumbnailSteps

From mediawiki.org
This page is a translated version of the page Manual:$wgThumbnailSteps and the translation is 40% complete.
サムネイルの設定: $wgThumbnailSteps
When defined, is an array of image widths used as steps for thumbnail sizes.
導入されたバージョン:1.44.0 (Gerrit change 1121793; git #bf7f5d3c)
除去されたバージョン:使用中
許容される値:(配列) または null
既定値:null

詳細

When defined, is an array of image widths used as steps for thumbnail sizes. The thumbnail with smallest step that has larger value than requested will be shown but it will be downsized via HTML values. It increases the bandwidth to the users by serving slightly large thumbnail sizes they have requested but it will save resources by de-duplicating thumbnail generation and storage. Note that these steps are "best effort" and MediaWiki might decide to use the requested size for any reason.

Example

As of May 2026, Wikimedia Commons uses the following settings:[1]

$wgThumbnailSteps = [20, 40, 60, 120, 250, 330, 500, 960, 1280, 1920, 3840];
$wgThumbnailStepsRatio = 1;

関連項目