| BitmapHandlerCheckImageArea | |
|---|---|
| Available fromversion 1.19.0 Called by BitmapHandler::normaliseParams(), after all normalizations have been performed, except for the$wgMaxImageArea check. | |
| Define function: | publicstaticfunctiononBitmapHandlerCheckImageArea($image,&$params,&$checkImageAreaHookResult){...} |
| Attach hook: | Inextension.json:{"Hooks":{"BitmapHandlerCheckImageArea":"MediaWiki\\Extension\\MyExtension\\Hooks::onBitmapHandlerCheckImageArea"}} |
| Called from: | File(s):media/TransformationalImageHandler.php |
| Interface: | BitmapHandlerCheckImageAreaHook.php |
For more information about attaching hooks, seeManual:Hooks.
For examples of extensions using this hook, seeCategory:BitmapHandlerCheckImageArea extensions.