// Setup the render parm $file = wfFindFile( $title ); if ( !$file ) { // file was removed, show wiki page with warning return false; } $params = [ 'fillwindow' => true ]; $videoTransform = $file->transform( $params );
resulting url is something like:
/images/thumb/9/90/Furcifer_pardalis_moving_eyes.ogv/mid-Furcifer_pardalis_moving_eyes.ogv.jpg
with no actual file generated at that location.
In production this seems to 'work', with the 404 handler accepting input like:
https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/Caminandes_-_Gran_Dillama_-_Blender_Foundation%27s_new_Open_Movie.webm/mid-Caminandes_-_Gran_Dillama_-_Blender_Foundation%27s_new_Open_Movie.webm.jpg
and producing a file even though there's no width specified.