jdriscoll/django-imagekit — pull request #68 by matthewwithanm (2011-11-16 15:13:15+00:00)
Title: Replaces `quality` argument with `options` dict

This one's in response to @deepakprakash's request in #67.

It always slightly bugged me that JPEGs were "privileged citizens" and this gave me a good chance to rectify it.

Basically, I replace the JPEG-only "quality" argument in `ImageSpec` and `ProcessedImageField` with an "options" dictionary, which gets passed to PIL's `Image.save()` as kwargs. This opens up all of PIL's format-specific options.

Since it does remove "quality" this will break existing code so I figured I'd submit it in a pull request. (I added an exception in `ProcessedImageField` to help people recognize the issue). I don't know how you guys handle this kind of thing; if we agree on this direction, we may want to bump the minor version number.