sorl/sorl-thumbnail — pull request #74 by simonz05 (2011-12-11 13:32:21+00:00)
Title: Add support image post-processing

This is a feature/discussion request to see if it could be
possible to add support for post-processing of thumbnails.
The feature I'm after is the ability to run thumbnails
through an additional image compressor after the initial
scaling of the thumbnail. The process of stripping images
off comments, exif, iptc markers and so forth can further
reduce the image size with no effect on image quality
(lossless compression).

Google recommends the use of jpegtran, jpegoptim, OptiPNG or
PNGOUT in their page speed docs [1].

I've added a naive two-line commit which will compress a
jpeg formatted image with the jpegoptim image program, if
you use the imagemagick engine (yes, i said it was naive).
This is just to get an idea of what I'm after, but I think
the more obvious solution would be to implement this in a
modular fasion.

1. Do you think this feature has a place in the sorl
library?

2. Where and how should it be implemented?

[1]: http://code.google.com/speed/page-speed/docs/payload.html#CompressImages