Page 1 of 1

PHP image resizing

Posted: Thu Nov 04, 2004 6:13 am
by rtlm
Hi,
I have a page for users to upload images. They upload the image as a thumbnail and also as the full size.
Is there any way to ensure that users can only upload thumbnails within a certain size?
I want to do this because when they are displayed, if the thumbnails are too large they offset the rest of the table that they are in.

thanks

Posted: Thu Nov 04, 2004 6:18 am
by phpScott
you can use [php_man]getimagesize[/php_man]() to get all sorts of usefull info including hieght and width.