Load an image by calling the static
load method on the
Image and passing in the
$image = Image::load(string $pathToImage);
Any of the image manipulations can be applied to the loaded
Image by calling the manipulation's method. All image manipulation methods can be chained.
Image::load('example.jpg') ->sepia() ->blur(50) ->save();
save method on an
Image will save the modifications to the original file. You can save you modified image by passing a
$outputPath to the
Image::load('example.jpg') ->width(50) ->save('modified-example.jpg');
To save the image in a different image format or with a different jpeg quality see saving images.