Your IP : 216.73.216.54


Current Path : /var/www/html/mediawiki/includes/media/Hook/
Upload File :
Current File : /var/www/html/mediawiki/includes/media/Hook/BitmapHandlerTransformHook.php

<?php

namespace MediaWiki\Hook;

use File;
use MediaTransformOutput;
use TransformationalImageHandler;

/**
 * This is a hook handler interface, see docs/Hooks.md.
 * Use the hook name "BitmapHandlerTransform" to register handlers implementing this interface.
 *
 * @stable to implement
 * @ingroup Hooks
 */
interface BitmapHandlerTransformHook {
	/**
	 * This hook is called before a file is transformed, giving extensions the
	 * possibility to transform it themselves.
	 *
	 * @since 1.35
	 *
	 * @param TransformationalImageHandler $handler
	 * @param File $image
	 * @param array &$scalerParams Array with scaler parameters
	 * @param null|MediaTransformOutput &$mto
	 * @return bool|void True or no return value to continue or false to abort
	 */
	public function onBitmapHandlerTransform( $handler, $image, &$scalerParams,
		&$mto
	);
}