PHP image resizing

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
rtlm
Forum Newbie
Posts: 5
Joined: Thu Nov 04, 2004 6:09 am

PHP image resizing

Post 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
User avatar
phpScott
DevNet Resident
Posts: 1206
Joined: Wed Oct 09, 2002 6:51 pm
Location: Keele, U.K.

Post by phpScott »

you can use [php_man]getimagesize[/php_man]() to get all sorts of usefull info including hieght and width.
Post Reply