Perform distributed image processing, such as resizing, using an IPython cluster

I’m working on a project that needs to process a lot of images on a daily regular basis.
Each processing task makes use of SciPy and PIL and is fairly cpu and time intensive.

I thought I’d share a gist of the image resizing code and a highly simplified client.
Uses IPython.parallel to distribute processing onto a bunch of nodes.

(the production version will use an ipcluster in ssh mode)