Topic on Project:Support desk

Hook on thumbs creation complete?

3
Subfader (talkcontribs)

I can't find a hook for when thumb creation is complete, so I want to hack core.

Which function is the last to handle thumb creation so I can grab the full path of the newly created thumbs?

I hope this includes thumbs created by $wgUploadThumbnailRenderMethod.

TheDJ (talkcontribs)

getTransform and doTransform() of MediaHandler is the last 'central' function for thumbnail generation. From there it basically depends on the media and the available render methods that are available. Most logic is in Bitmap.php, which contains common code for GD and ImageMagick transforms but there is a lot more.

Subfader (talkcontribs)

Thanks, I meanwhile ended up in transformImageMagick().

Reply to "Hook on thumbs creation complete?"