Contao\Controller::resizeImage PHP Метод

resizeImage() защищенный Метод

Resize an image and crop it if necessary
Устаревший: Deprecated since Contao 4.0, to be removed in Contao 5.0. Use Image::resize() instead.
protected resizeImage ( string $image, integer $width, integer $height, string $mode = '' ) : boolean
$image string The image path
$width integer The target width
$height integer The target height
$mode string An optional resize mode
Результат boolean True if the image has been resized correctly
    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);
    }