Page 1 of 1

How to get image details using php

Posted: Sun Apr 25, 2010 3:36 am
by Neo
Try this code.

Code: Select all

<?php
$img = "images/empty.gif";

list($width, $height, $type, $attr) = getimagesize($img);

print "Width : $width and height = $height";
?>