Opas:$wgThumbnailBuckets

From mediawiki.org
Jump to navigation Jump to search
This page is a translated version of the page Manual:$wgThumbnailBuckets and the translation is 55% complete.
Other languages:
English • ‎español • ‎français • ‎polski • ‎português • ‎suomi • ‎日本語
Thumbnail settings: $wgThumbnailBuckets
List of intermediary thumbnail sizes to use to speed up thumbnail rendering.
Introduced in version:1.24.0 (Gerrit change 135008; git #7036e7b6)
Removed in version:still in use
Allowed values:(joukko positiivisia kokonaislukuja)
Default value:null

Tiedot

Kun $wgThumbnailBuckets on määritetty, MediaWiki käyttää välipienoiskuvia nopeuttaakseen pienoiskuvien renderointia. $wgThumbnailBuckets 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 + $wgThumbnailMinimumBucketDistance but smaller than the original, and it will scale that thumbnail down to the target size instead of scaling down the original file. This is done recursively, i.e. if the intermediary thumbnail for that bucket does not exist, it will be created from the intermediary thumbnail for the next bucket.

This will increase thumbnail generation speed considerably, especially for large images, but it will cause some loss of quality as thumbnails are now the result of several chained lossy transformations instead of just one.

File handlers have to opt into using this feature via MediaHandler::supportsBucketing(). Tällä hetkellä vain BitmapHandler tukee sitä.

Katso myös