Black core
Black core

Reputation: 13

Quality must range from 0 to 100 image intervention laravel 8

i am facing this issue while resizing image.

$brand_image=$request->file('brand_image');
     $img_name=time().$brand_image->getClientOriginalName();
       

       $img=Image::make($brand_image)->resize(30,20);

        $img->save('images/brands/',$img_name);

Upvotes: 0

Views: 610

Answers (1)

Shaza
Shaza

Reputation: 46

$img->save('images/brands/'.$img_name);

with dot (.) for concatenation not comma (,)

I solved it in my case:

Image::make($image)->resize(300,300)->save('upload/brands/'.$name_gen);

Upvotes: 1

Related Questions