Answers for "get height and width of image in php 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
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

Code answers related to "get height and width of image in php laravel"

Browse Popular Code Answers by Language