how get the size of image in laravel
snippet in php

how get the size of image in laravel

user1894

   $image = getimagesize($request->image);
        $width = $image[0];
        $height = $image[1];

get image width and height in laravel

user9579

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();