Reply to Re: Script to Resize & Upload photos

Your name:

Reply:


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

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация