MediaWiki 1.37.6
Using the following gallery tag:
<gallery widths=960px heights=540px perrow=3 mode=slideshow> Image 1.png|Description 1 Image 2.png|Description 3 Image 3.png|Description 3 </gallery>
This is creating hundreds of thumbnails with every possible resolution
... 877px-Image_1.png 879px-Image_1.png 887px-Image_1.png 895px-Image_1.png 943px-Image_1.png 951px-Image_1.png 953px-Image_1.png 960px-Image_1.png 967px-Image_1.png 971px-Image_1.png 978px-Image_1.png 986px-Image_1.png 991px-Image_1.png 992px-Image_1.png 998px-Image_1.png
The image is 1920x1080px originally.
Expected behaviour is to function as other thumbnails, where only a dozen or so thumbnail sizes are created based on sizes used throughout the site.
This functionality seems to be configured in resources/src/mediawiki.page.gallery.slideshow.js.
A 4MB file is creating 500MB of thumbnails. Overall, 1 GB of files is creating 16GB of thumbnails.