Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

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();
 
PREVIOUS NEXT
Tagged: #image #width #height #laravel
ADD COMMENT
Topic
Name
8+3 =