Answers for "php getimagesize"

PHP
2

get image size php

$image_size = $_FILES["inputfilename"]["size"];
/*Not From Form*/
$img_size = getimagesize("imagepath"); // returns an array that is filled with info
print_r($img_size);
Posted by: Guest on June-14-2021
0

getimagesize php

<?php
list($width, $height, $type, $attr) = getimagesize("img/flag.jpg");
echo "<img src=\"img/flag.jpg\" $attr alt=\"getimagesize() example\" />";
?>
Posted by: Guest on March-22-2021
0

getimagesize php

<?php
$size = getimagesize("http://www.example.com/gifs/logo.gif");

// if the file name has space in it, encode it properly
$size = getimagesize("http://www.example.com/gifs/lo%20go.gif");

?>
Posted by: Guest on March-22-2021

Browse Popular Code Answers by Language