PDA

View Full Version : Getting the width&height of image?



MrCraig
27-01-2008, 04:45 PM
is there any way, in php, to determine the width and height of an image that is already uploaded?

I remember reading something on php.net but forgot the command..

Thanks for any help :)

Baving
27-01-2008, 06:50 PM
getimagesize

Blob
27-01-2008, 06:52 PM
<?php
list($width, $height, $type, $attr) = getimagesize("image_name.gif");
?>


Whatever file

MrCraig
27-01-2008, 08:14 PM
Ty ;)
+REP if i can.

Want to hide these adverts? Register an account for free!