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

Diez B. Roggisch deets at
Tue Aug 19 08:54:34 CEST 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.


More information about the Python-list mailing list