Page 1 of 1

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

Posted: Wed Nov 05, 2003 1:58 pm
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

Posted: Wed Nov 05, 2003 2:01 pm
by JAM
Tried [php_man]getimagesize[/php_man]()?

height and width

Posted: Wed Nov 05, 2003 2:11 pm
by ruthsimon
That was painless..

Thanks!