I'm trying to upload an image and resize it using Intervention Image 2.x. But I get an error called Image source not readable
.
Is there a way to debug this error.
I'm using the following code shown in the documentation.
Image::make($request->file('productImage'))->resize(800, 500)->save('foo.jpg');
And my view part responsible for file upload is,
<div class="form-group">
<label for="inputFile" class="col-sm-2 control-label">Product Image</label>
<div class="col-sm-10">
<input type="file" id="productImage" name="productImage">
<p class="help-block">Upload product Image</p>
</div>
</div>
There are lots of resources for older version of Laravel, but it's hard to find resources for Laravel 5.4
Any suggestion is appreciated.