open — Read a new image resource from file
Description
public Intervention\Image\Image open($path)
Read image from path in filesystem as image resource for current image.
If you want to create an image resource with a static call, use Image::make instead.
Parameters
path
Path of the image in filesystem.
Return Values
Instance of Intervention\Image\Image
Examples
// create a image instance and open file
$img = new Image;
$img->open('public/foo.jpg');
See also
当前内容版权归 intervention 或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问 intervention .