Answers for "laravel image resize"

PHP
0

how get the size of image in laravel

$image = getimagesize($request->image);
        $width = $image[0];
        $height = $image[1];
Posted by: Guest on February-06-2021
0

Laravel - Resize image size using Laravel image class

$path = storage_path() . '/app/public/uploads/users/' . Hashids::encode($User->id) . '/' . $file_temp_name;
                    $img = Image::make($file)->fit(1024);
                    $img->save($path);
Posted by: Guest on November-15-2021

Browse Popular Code Answers by Language