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
tommy1987
Forum Commoner
Posts: 92
Joined: Tue Feb 21, 2006 8:35 pm

Image Resizing

Post by tommy1987 »

I am trying to develop some code to resize an image and copy it to another location on the webserver. Can anybody tell me how this is done, i.e. is there a function I can pass the image to. Have looked around on PHP.net and cant seem to find this information.

There are two types of image that I am trying to perform this operation on: image/jpeg and image/gif.

Any information from peoples experiences or pointers are greatly appreciated!

Thanks very much in advance,
User avatar
Luke
The Ninja Space Mod
Posts: 6424
Joined: Fri Aug 05, 2005 1:53 pm
Location: Paradise, CA

Post by Luke »

http://www.phpgd.com - if you have this extension installed, it will work. A lot of hosts do, so check it out. Also here:
http://us2.php.net/manual/en/ref.image.php
Post Reply