static function create($width, $height = 0, $mode = ImageResizeDefinition::MODE_MAX, $upscale = false)
    {
        return new static($width, $height, $mode, $upscale);
    }
static function create($width, $height = 0, $mode = ImageResizeDefinition::MODE_MAX, $upscale = false)
    {
        return new static($width, $height, $mode, $upscale);
    }
static function create ( $ width , $ height = 0 , $ mode = ImageResizeDefinition :: MODE_MAX , $ upscale = false ) { return new static ( $ width , $ height , $ mode , $ upscale ) ; }
Create an ImageResizeDefinition instance

@param int $width The width of the new size
@param int $height   The height of the new size.
If set to 0 (default), it will be set to the same value as width.
If set to ImageResizeDefinition::HEIGHT_UNRESTRICTED, height will not be restricted.
@param string $mode one of the ImageResizeDefinition::MODE_* constants, i.e. 'max', 'min', or 'crop'
@param bool $upscale Should the image be upscaled if it is smaller than the new size?
@return ImageResizeDefinition
Create an ImageResizeDefinition instance