Can you find an image width & height after http upload?

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
ruthsimon
Forum Newbie
Posts: 19
Joined: Mon Aug 19, 2002 5:44 pm

Can you find an image width & height after http upload?

Post by ruthsimon »

In my script, a user has uploaded an image. I want to determine if the image is the right size for display on a thumbnail page, or if it should be displayed otherwise.

Is there a way to find out the image's height and width?

Thanks, Ruth
User avatar
JAM
DevNet Resident
Posts: 2101
Joined: Fri Aug 08, 2003 6:53 pm
Location: Sweden
Contact:

Post by JAM »

Tried [php_man]getimagesize[/php_man]()?
ruthsimon
Forum Newbie
Posts: 19
Joined: Mon Aug 19, 2002 5:44 pm

height and width

Post by ruthsimon »

That was painless..

Thanks!
Post Reply