|
Posted by Wei on 04/05/06 20:46
It is actually very easy if you have GD lib in your php package.
http://us2.php.net/manual/en/function.imagecopyresized.php
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:
> 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.
>
> Jon
Navigation:
[Reply to this message]
|