PHP : get image info of a image url

<?php

list($width, $height, $type, $attr) = getimagesize(“URL”);

echo “Image width ” . $width . “<br>”;
echo “Image height ” . $height . “<br>”;
echo “Image type ” . $type . “<br>”;
echo “Attribute ” . $attr . “<br>”;

?>

Leave a Reply

Your email address will not be published. Required fields are marked *

*
*
Website