Thread:Project:Support desk/Why does MediaWiki try to create the same thumbnail multiple times?

Hi guys,

during one single request, MediaWiki tries to create one and the same thumbnail multiple times.

Start request GET /Main_Page ... Pulling file metadata from cache key wiki:file:8866e45e917553a7dbb1198218cfa928 MimeMagic::__construct: loading mime types from /www/wiki/includes/mime.types MimeMagic::__construct: loading mime info from /www/wiki/includes/mime.info

File::transform: Doing stat for mwstore://local-backend/local-thumb/8/88/Image.png/450px-Image.png FileBackendStore::getFileStat: File mwstore://local-backend/local-thumb/8/88/Image.png/450px-Image.png does not exist. BitmapHandler::doTransform: creating 450x151 thumbnail at /tmp//transform_64c4649d3b12-1.png using scaler im BitmapHandler::doTransform: returning unscaled image

File::transform: Doing stat for mwstore://local-backend/local-thumb/8/88/Image.png/450px-Image.png BitmapHandler::doTransform: creating 450x151 thumbnail at /tmp//transform_40e462b65414-1.png using scaler im BitmapHandler::doTransform: returning unscaled image

File::transform: Doing stat for mwstore://local-backend/local-thumb/8/88/Image.png/450px-Image.png BitmapHandler::doTransform: creating 450x151 thumbnail at /tmp//transform_341bb62f6727-1.png using scaler im BitmapHandler::doTransform: returning unscaled image

For this image, it does not make sense to create a thumbnail with 450x151 pixels, as that is exactly the size of the original. In so far I think it is correct, that MediaWiki says it returns the original image.

But why is it doing that three times in a row?