Answers for "$_FILES image dimensions"

0

$_FILES image dimensions

if (isset($_FILES['image'])) {
    $filename = $_FILES['image']['tmp_name'];
    list($width, $height) = getimagesize($filename);
    echo $width; 
    echo $height;    
}
Posted by: Guest on June-14-2021
0

$_FILES image dimensions

$filename = $_FILES['image']['tmp_name'];
$size = getimagesize($filename);

// or

list($width, $height) = getimagesize($filename);
// USAGE:  echo $width; echo $height;
Posted by: Guest on June-14-2021

Browse Popular Code Answers by Language