NYCPHP Meetup

NYPHP.org

[nycphp-talk] Re: Resize pictures before uploading (Jeffrey Li)

Jeffrey Li jli at rightmedia.com
Wed Jul 11 15:47:46 EDT 2007


ImageMagick is a great command line tool that can modify images but the
processing will happen on the server side after image has already been
uploaded.  You can use exec() within your script to execute the ImageMagick
commands

http://www.imagemagick.org/script/index.php

>
> At 10:01 AM -0400 7/11/07, Dell Sala wrote:
> >On Jul 11, 2007, at 7:51 AM, tedd wrote:
> >
> >>On Wednesday 20 Jun 2007 21:42:13 Nelly Yusupova wrote:
> >>>
> >>>  Is there a script or any way I can resize the pictures before
> uploading?
> >>
> >>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"
> >-snip-
> >Also cool stuff, but all the processing happens on the server-side.
> >
> >-- Dell
>
> My bad - you're right. I had a senior moment.
>
> I was thinking that because the operation had to take place
> client-side that a client-side language should work. However,
> javascript doesn't have access to client-side files.
>
> Sorry,
>
> tedd
> --




More information about the talk mailing list