willkg/richard — pull request #44 by squiddy (2012-03-21 09:44:33+00:00)
Title: Add command to pull down thumbnails and put in media

Patch for #6

Thanks for your feedback on the commit, I have taken most of your comments into account.

> My vote is wrap this line in a try/except and if it fails on an ImportError, spit an error to the user and skip image resizing later on.

The problem is that we need a consistent image format for the thumbnails if we don't want to guess or store the filename in the database. Downloading the image without resizing would work if we assume that all remote thumbnail urls are always in JPEG format, I did not want to make that restriction though. I'll be happy to change it if you prefer that.

Are there other alternatives to PIL? I recently learned about https://github.com/ojii/pymaging, a pure python imaging library. It's pretty young though.