Extension:PagedTiffHandler/Hooks/PagedTiffHandlerRenderCommand
Appearance
PagedTiffHandlerRenderCommand | |
---|---|
Available from version ??? Override or modify the ImageMagick rendering command of TIFF files, just before $cmd is executed |
|
Define function: | public static function onPagedTiffHandlerRenderCommand( string &$cmd, string $srcPath, string $dstPath, int $page, int $width, int $height, array $scalerParams ) { ... }
|
Attach hook: | $wgHooks['PagedTiffHandlerRenderCommand'][] = 'MyExtensionHooks::onPagedTiffHandlerRenderCommand';
|
Called from: | File(s): PagedTiffHandler / includes/PagedTiffHandler.php Function(s): transformIM |
For more information about attaching hooks, see Manual:Hooks .
For examples of other extensions using this hook, see Category:PagedTiffHandlerRenderCommand extensions.
Details
[edit]&$cmd
- The command that will be executed by wfShellExecWithStderr after this hook has run$srcPath
- Path of the source file that will be converted (and page offset)$dstPath
- Path of the to be created transformed image$page
- Page to be transformed$width
- Width of the page to be transformed$height
- Height of the page to be transformed$scalerParams
- Scaling options (see TransformationalImageHandler::doTransform)