The default widthBuckets are defined in mmv.ThumbnailWidthCalculator.js, but thumbnail generation can be expensive on my server (in terms of CPU and storage space), so I'd like to change the default array to sizes which have already been generated (basically, the widths from my default 'thumbsize' and 'imagesize' preference plus 1.5x and 2x of those since $wgResponsiveImages=true). Could the thumb width buckets be made into a config variable? (unless there is a way to set it without hacking the JS file and I missed something)
Description
Details
Related Objects
- Mentioned In
- T372165: Reduce number of bucketsizes for MediaViewer
- Mentioned Here
- T360589: De-fragment thumbnail sizes in mediawiki
Event Timeline
Change #1043238 had a related patch set uploaded (by Simon04; author: Simon04):
[mediawiki/extensions/MultimediaViewer@master] Obtain thumbnail bucket widths from wgUploadThumbnailRenderMap
Change #1043238 abandoned by Simon04:
[mediawiki/extensions/MultimediaViewer@master] Obtain thumbnail bucket widths from wgUploadThumbnailRenderMap
Change #1043238 restored by Simon04:
[mediawiki/extensions/MultimediaViewer@master] Obtain thumbnail bucket widths from wgUploadThumbnailRenderMap
Change #1043238 merged by jenkins-bot:
[mediawiki/extensions/MultimediaViewer@master] Make thumbnail bucket widths configurable using wgMediaViewerThumbnailBucketSizes
Change #1084905 had a related patch set uploaded (by Alistair3149; author: Simon04):
[mediawiki/extensions/MultimediaViewer@REL1_39] Make thumbnail bucket widths configurable using wgMediaViewerThumbnailBucketSizes
Change #1084905 abandoned by Alistair3149:
[mediawiki/extensions/MultimediaViewer@REL1_39] Make thumbnail bucket widths configurable using wgMediaViewerThumbnailBucketSizes