image icon indicating copy to clipboard operation
image copied to clipboard

save the image jpg format not working!

Open daeehamid opened this issue 5 years ago • 2 comments

hi this is my code for Upload image from any format to jpg

$filename = Carbon::now()->timestamp;
$path = "images/".$filename;
$image = Image::make($file);
$image->save($path , 80 , 'jpg' );

but it's not working!! file uploaded without extension!! why ?

daeehamid avatar Jan 17 '20 17:01 daeehamid

I use this code with "intervention/image": "^2.5" and it's works.

$file = $request->file('photo');
$name = $file->getClientOriginalName();
$source = Image::make($file->getRealPath())->save($file, 60, 'jpg');

davidmartinezfl avatar Jul 29 '20 20:07 davidmartinezfl

Hi, If you are looking for something like Laravel Imager Happy to help.

tinkeshwar avatar Mar 12 '21 08:03 tinkeshwar