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();
$request->file('image')->getSize()
request()->validate([
'image' => 'image|mimes:jpeg,png,jpg|max:2048',
]);
$image = getimagesize($request->image);
$width = $image[0];
$height = $image[1];
$path = storage_path() . '/app/public/uploads/users/' . Hashids::encode($User->id) . '/' . $file_temp_name;
$img = Image::make($file)->fit(1024);
$img->save($path);