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

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

		return Image::resize($image, $width, $height, $mode);
	}
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

@return boolean True if the image has been resized correctly

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