Movatterモバイル変換


[0]ホーム

URL:


Jump to content
MediaWiki
Search

Manual:Hooks/BitmapHandlerCheckImageArea

From mediawiki.org
<Manual:Hooks
BitmapHandlerCheckImageArea
Available fromversion 1.19.0
Called byBitmapHandler::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.


Details

[edit]
  • $image: File
  • &$params: Array of parameters
  • &$checkImageAreaHookResult: null, set to true or false to override the $wgMaxImageArea check result
Retrieved from "https://www.mediawiki.org/w/index.php?title=Manual:Hooks/BitmapHandlerCheckImageArea&oldid=5028504"
Categories:

[8]ページ先頭

©2009-2025 Movatter.jp