Script to Resize & Upload photos

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
Hi, am hoping that someone may be able to help me. Im designing a small
website using PHP and MySQL. I would like to allow my visitors to
upload a photo via a form on it. Im worried that people will be trying
to upload 1mb+ images, so i am looking for a php script that will
resize that image down to a managable 50kb file (or there abouts) and
also give me a small thumbnail to use. Presumably then the script would
also delete the original 1mb+ photo from the server. Ive been searching
through google for an answer, but with not a great deal of luck. Thanks
in advance.


Re: Script to Resize & Upload photos

It is actually very easy if you have GD lib in your php package.

or if you have imagemagick installed, you can use command "convert -resize
a.jpg b.jpg"

On Wed, 05 Apr 2006 09:28:10 -0700, attenborough wrote:

Quoted text here. Click to load it

Re: Script to Resize & Upload photos schrieb:
Quoted text here. Click to load it

If you want to ask a question in more than one newsgroup please  
crosspost (send it to all groups at once) rather than multipost.

You find my answer in alt.php.


Site Timeline