Reputation: 13
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
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