How to get image details using php
Posted: Sun Apr 25, 2010 3:36 am
Try this code.
Code: Select all
<?php
$img = "images/empty.gif";
list($width, $height, $type, $attr) = getimagesize($img);
print "Width : $width and height = $height";
?>