- 2.0.0
- 1.3.3
Initialize from an image file
You can initialize a layer by specifying the path of an existing image file:
$layer = ImageWorkshop::initFromPath('/path/to/images/picture.jpg');
The layer will automatically get the width and the height of the image.