ImageResize on the web using cherrypy

Last Update: 07.12.2007. By kerim in python

The idea:
A simple webbased application that will resize any image of yours immediately and give it back to you.

The goal is to have a simple form that will ask for a file to upload, the new size and the question if the aspect ratio should be preserved. When you click submit the file is uploaded resized and sent back. Simple service. I realized it using cherrypy since i wanted to debug the code correctly.

A solution:

  1. downloadCherryPy

  2. You also need PIL

  3. pick up this code

  4. Execute it !

When you run the cherrypyserver all you have to do is to open your browser and point it tohttp://localhost:8080. Rest should be selfexplanatory.