Answers for "how to get image size laravel"

PHP
3

get image width and height in laravel

Core php :
list($width, $height, $type, $attr) = getimagesize($_FILES["gallery_image"]['tmp_name']);

With Intervention :
$upload_file = $request->file('gallery_image');
$height = Image::make($upload_file)->height();
$width = Image::make($upload_file)->width();
Posted by: Guest on August-21-2020
1

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

Code answers related to "how to get image size laravel"

Browse Popular Code Answers by Language