Resize an image after 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
spec36
Forum Commoner
Posts: 28
Joined: Thu Nov 19, 2009 6:07 pm

Resize an image after upload

Post by spec36 »

Can anyone steer me in the right direction here?

What functions, etc... would be best to use for resizing images after they have been uploaded? Any suggestions on the best approach for this would be great? This is my first attempt to do anything with PHP and images so all help is greatly appreciated.

EXAMPLE:
-------------
1. User uploads an image
2. Images gets placed in the uploads folder
3. Images gets resized to a fixed dimension and maybe moved to another folder (images or something, if needed)
4. All resized images in the uploads folder are displayed on a webpage.
buckit
Forum Contributor
Posts: 169
Joined: Fri Jan 01, 2010 10:21 am

Re: Resize an image after upload

Post by buckit »

Look up the GD library.. can do everything you are looking for and more :)
spec36
Forum Commoner
Posts: 28
Joined: Thu Nov 19, 2009 6:07 pm

Re: Resize an image after upload

Post by spec36 »

Thanks for the help
Post Reply