get image width and height from image url in php
<?php
$testing = "http://dsvwebtech.com/listing/uploads/dsv.jpg";
//echo $testing;
list($width, $height, $type, $attr) = getimagesize($testing);
echo "Image width " . $width;
echo "Image height " . $height;
?>
$testing = "http://dsvwebtech.com/listing/uploads/dsv.jpg";
//echo $testing;
list($width, $height, $type, $attr) = getimagesize($testing);
echo "Image width " . $width;
echo "Image height " . $height;
?>
Comments
Post a Comment