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

Diez B. Roggisch deets at nospam.web.de
Wed Aug 20 07:27:14 EDT 2008


brahmaforces wrote:

> Hi Diez:
> The file browse button will get me a filename on the client machine.
> You are saying post will transfer the file itself? I am using straight
> cherrypy no turbo gears etc, so ill have to do manually.

You need to use POST, and some enctype-this-or-that-stuff. There is plenty
of material available on that, googling "cherrypy file upload" results in
this as first hit:

http://www.cherrypy.org/wiki/FileUpload

> I have not been able to find the javascript on google despite a lot of
> searching. Would appreciate some code since you mention you have
> already done this...Thanks for your help

I don't have that code handy, no idea where it is lying around. Try sharpen
your google-foo, it certainly can use it. Googling "javascript image
resizing server side" resulted in this 

http://ajaxian.com/archives/iphoto-like-image-resizing-using-javascript

as second hit.

I don't mind answering off-topic-questions here, but essentially these are
things better suited for HTML, JS and HTTP-fora of whatever kind.

Diez



More information about the Python-list mailing list