Is there anyway to get an image width and height in PHP?
Image width and height
Started by
Guest_NeedHelp_*
, Jul 15 2006 08:38 AM
2 replies to this topic
#1
Guest_NeedHelp_*
Posted 15 July 2006 - 08:38 AM
Guest_NeedHelp_*
|
|
|
#2
Posted 15 July 2006 - 09:13 AM
I never done that before, but when i was looking to create a dynamic signature i ran accrost this the getimagesize() function. Im not sure if its what you want but its worth looking into
http://us3.php.net/f...on.getimagesize
http://us3.php.net/f...on.getimagesize
#3
Guest_Jordan_*
Posted 15 July 2006 - 09:29 AM
Guest_Jordan_*
Yes, that is the correct function.
$size = getimagesize("someimage.jpg");
$width = $size[0];
$height = $size[1];


Sign In
Create Account

Back to top









