core-bundle/src/Resources/contao/library/Contao/Controller.php
protected function getImage($image, $width, $height, $mode='', $target=null, $force=false)
	{
		@trigger_error('Using Controller::getImage() has been deprecated and will no longer work in Contao 5.0. Use Image::get() instead.', E_USER_DEPRECATED);

		return Image::get($image, $width, $height, $mode, $target, $force);
	}
protected function getImage($image, $width, $height, $mode='', $target=null, $force=false)
	{
		@trigger_error('Using Controller::getImage() has been deprecated and will no longer work in Contao 5.0. Use Image::get() instead.', E_USER_DEPRECATED);

		return Image::get($image, $width, $height, $mode, $target, $force);
	}
Resize an image and crop it if necessary

@param string  $image  The image path
@param integer $width  The target width
@param integer $height The target height
@param string  $mode   An optional resize mode
@param string  $target An optional target to be replaced
@param boolean $force  Override existing target images

@return string|null The image path or null

@deprecated Deprecated since Contao 4.0, to be removed in Contao 5.0.
Use Image::get() instead.