GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Main page
  • Get MediaWiki
  • Get extensions
  • Tech blog
  • Contribute
  • User help
  • FAQ
  • Technical manual
  • Support desk
  • Communication
  • Developer portal
  • Code statistics
  • Community portal
  • Recent changes

This view

  • Original page
  • New address

GeezerVison is showing www.mediawiki.org — Extension:PagedTiffHandler/Hooks/PagedTiffHandlerRenderCommand - MediaWiki

< Extension:PagedTiffHandler
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

  • &$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)
Retrieved from "https://www.mediawiki.org/w/index.php?title=Extension:PagedTiffHandler/Hooks/PagedTiffHandlerRenderCommand&oldid=3725144"
Categories:
  • Extension hooks
  • Extension hooks provided by PagedTiffHandler
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.