Creates an Image object.
public create ( string | Contao\Image\ImageInterface $path, integer | array | Contao\Image\ResizeConfigurationInterface | null $size = null, string | null $targetPath = null ) : Contao\Image\ImageInterface | ||
$path | string | Contao\Image\ImageInterface | The path to the source image or an Image object |
$size | integer | array | Contao\Image\ResizeConfigurationInterface | null | An image size ID, an array with width, height and resize mode or a ResizeConfiguration object |
$targetPath | string | null | |
return | Contao\Image\ImageInterface |