Python Substitute for PHP GD, Resizing an image on the client side

Diez B. Roggisch deets at nospam.web.de
Tue Aug 19 02:54:34 EDT 2008


brahmaforces schrieb:
> Hi Folks,
> 
> I am using cherrypy and python. I am trying to get a user profile
> image to resize on the client side before uploading to the server. PHP
> has a gd library that does it it seems. Has anyone done this in a
> python environment without uploading to the server?

Everything PHP is server-side. And displaying images is *always* done 
through uploading and then displaying it.

The resizing is done using JavaScript, and then communicating back the 
selected rectangle to the server - *then* GD or whatnot (PIL, 
ImageMagick) are used to resize the image.

Diez



More information about the Python-list mailing list