Library Link: https://github.com/claviska/SimpleImage
I am using toFile
to save an image. I want to write the image on the specific path as I can't write on the root of the project on my server.
I am using this code
$image->resize($thumbnail->width, $thumbnail->height)->toFile($imageFileName);
This exception comes
Exception: Failed to write image to file: in claviska\SimpleImage->toFile()