liqd/adhocracy — pull request #711 by xi (2014-01-22 12:18:13+00:00)
Title: Allow cropping images

Currently, we use Image.thumbnail for resizing images. That
resizes an image so that it is *at most* the given size.

This commit changes that so that images are first resized to
be *at least* the given size. After that they are centered and
then cropped.