title: Python: process image and save to file stream
body: <p>I need to process an image (apply filters and other transformation) using python and then serve it to the user using HTTP. Right now, I'm using BaseHTTPServer and PIL.</p>
  
  <p>Problem is, PIL can't write directly into file streams, so I have to write into a temporary file, and then read this file so I could send it to the user of the service.</p>
  
  <p>Are there any image processing libraries for python that can output JPEG directly to I/O (file-like) streams? is there a way to make PIL do that?</p>