Page 1 of 1

Image height/width values

Posted: Mon Oct 21, 2002 7:28 pm
by Bennettman
How can you set variables to the height and width (in pixels) of a specified image?

Posted: Mon Oct 21, 2002 8:14 pm
by volka
please clarify...

Posted: Mon Oct 21, 2002 9:09 pm
by Bennettman
You specify the URL of an image, and set a variable as either the height or the width of that image... something like:

Code: Select all

$height = $IMAGE_HEIGHT("http://www.site.com/image.gif");
From the sounds of your reply, it doesn't look as though it's possible without major work.

Posted: Mon Oct 21, 2002 10:04 pm
by hob_goblin

Posted: Tue Oct 22, 2002 6:55 am
by Bennettman
Way to prove me wrong ;p thanks a lot! I really gotta look harder at php.net -_-