Hi I'm getting this error message while trying to save an image using Intervention/image .
{
"error": {
"type": "Intervention\\Image\\Exception\\NotWritableException",
"message": "Can't write image data to path (/home/sourav/Public/master/v1.1.01/public/images/collections/Java/backgrdImageUrl.jpg)",
"file": "/home/sourav/Public/master/v1.1.01/vendor/intervention/image/src/Intervention/Image/Image.php",
"line": 143
}
}
Here is the code within my function setBackgroundImageUrl($image)
$img = Image::make($image);
$img->save(public_path() . '/images/collections/' . $this->getCollectionTitle() . '/backgrdImageUrl.jpg');
It looks like a permissions issue but I tried chmod -R 777 /images/collections
at it still throws the same error message.