I'm using intervention/image 2.3
. When I try to upload an image I got the following error :
InvalidArgumentException in AbstractEncoder.php line 212
Quality must range from 0 to 100
Below is my code for that :
$file = Input::file('image');
$filename = time() . '.' . $file->getClientOriginalExtension();
Image::make($file)->resize(50, 50)->save(storage_path() . DIRECTORY_SEPARATOR . 'uploads', $filename);
Any single guidance will help me alot. According to this URL I tried out to pass second optional parameter ie quality but didn't work. I tried even
Image::make($file)->resize(50, 50)->save(storage_path() . DIRECTORY_SEPARATOR . 'uploads'. $filename, 50);
Image::make($file)->resize(50, 50)->save(storage_path() . DIRECTORY_SEPARATOR . 'uploads', $filename);
before$filename
. It should be.
– Fauve