Image height/width values

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Bennettman
Forum Contributor
Posts: 130
Joined: Sat Jun 15, 2002 3:58 pm

Image height/width values

Post by Bennettman »

How can you set variables to the height and width (in pixels) of a specified image?
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

please clarify...
Bennettman
Forum Contributor
Posts: 130
Joined: Sat Jun 15, 2002 3:58 pm

Post 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.
User avatar
hob_goblin
Forum Regular
Posts: 978
Joined: Sun Apr 28, 2002 9:53 pm
Contact:

Post by hob_goblin »

Bennettman
Forum Contributor
Posts: 130
Joined: Sat Jun 15, 2002 3:58 pm

Post by Bennettman »

Way to prove me wrong ;p thanks a lot! I really gotta look harder at php.net -_-
Post Reply