open

Open an image file and assign Image to first parameter. Grafika officially supports JPEG, PNG, GIF, and animated GIF. In theory, Grafika can open and edit other image formats as long as they are supported by GD and Imagick but it is currently untested.

open ( ImageInterface &$image, string $imageFile ): EditorInterface 
Parameters
image

Instance of Image.

imageFile

File system path to image file.

Returns
An instance of Editor.