public Intervention\Image\Image basePath()
Get the base path for the current image, if instance was initiated from an actual file.
none
Returns the absolute path of the image file as string
or null
if the image instance wasn't created from a file.
Examples
// create an image
$img = Image::make('public/foo.jpg');
// get file path
$path = $img->basePath();
2023-09-08 更新 本文链接:https://upwqy.com/index.php/wiki/info/876.html