Does it tell's you which line it failing at? At least we know exactly where's it failing.
Jun 6, 2017
8
Level 2
Image intervention - Image source not readable
I want to add watermark to my images but It's throwing the error "Image source not Readable". I've used it on my local host and it worked fine. Please kinldy help me check what's wrong. Thank You.
I've tried this
$fileName = "img-".$key. "." . strtolower($image->getClientOriginalExtension());
$img = Image::make($image->getRealPath());
$watermark = Image::make(public_path('img/logo.png'));
$img->insert($watermark)->save($path.'/'.$fileName);
and this
$fileName = "img-".$key. "." . strtolower($image->getClientOriginalExtension());
$img = Image::make($image->getRealPath());
$img->insert(public_path('img/logo.png'))->save($path.'/'.$fileName);
But all still give the same Image source not readable error
Level 2
Already solved it...I had to remove the
public_path()
because it's adding public to my image link.
I say a very big thank you to @fraserk for your time, effort and support.
Thanks man, Thank You Everyone.
3 likes
Please or to participate in this conversation.