NYCPHP Meetup

NYPHP.org

[nycphp-talk] Resize pictures before uploading

tedd tedd at sperling.com
Wed Jul 11 07:51:44 EDT 2007


On Wednesday 20 Jun 2007 21:42:13 Nelly Yusupova wrote:
>  Hello Everyone,
>
>  I wrote a script that allows users to upload up to 10 photo files to the
>  server.   The script automatically resizes the photos to the appropriate
>  size.  The upload and resizing scripts are working perfectly.  The problem
>  is that clients are uploading large photo files and it takes a long time to
>  upload them.
>
>  Is there a script or any way I can resize the pictures before uploading?
>
>  Thank you in advance.
>
>  Sincerely,
>  Nelly Yusupova
>  DigitalWoman.com
>   <mailto:nelly at digitalwoman.com> nelly at digitalwoman.com

Nelly:

Sure, you'll have to write something client-side, namely javascript 
to do it. But, there's all sorts of javascript scripts to resize 
images available to choose from, try Google "resize images javascript"

Here's one that should do with a little work:

http://www.xs4all.nl/~sbpoley/webmatters/resize.html

Here's one that allows the user to crop and resize their pictures.

http://mondaybynoon.com/2007/01/22/crop-resize-with-javascript-php-and-imagemagick/

Lot's of neat stuff.

I would like to see your end-result.

Cheers,

tedd
-- 
-------
http://sperling.com  http://ancientstones.com  http://earthstones.com



More information about the talk mailing list