This is for when using ImageMagick to create thumbnail of only the first page.

Modified source to look like /path/filename.pdf[0] instead of /path/filename.pdf.

Doesn't seem to have negative impact on other file formats.

NB: Testing is needed, and this probably only works when using ImageMagick.
adding support on the low level API for the dummys
fixing bug for unsupported django setting
fixing bug for dummies
removing unused import
removing a temporal change. it works now
Normalizing image url for UrlStorage

Added url sanitation to prevent error "HTTP Error 505: HTTP Version Not Supported".

* Added utf8 encode to "path"
Added comments
Added check if path is unicode
Fixed error logging.
Added support for specifying cache configuration
ref #176

Added a new setting THUMBNAIL_CACHE which defaults to 'default', but can be used to specify which cache configuration to use. This might be useful if running multiple cache clusters.

Signed-off-by: Rolf Håvard Blindheim <rolf@moota.com>
Fixes photo desaturation issue when using PIL

Cropping in PIL desaturates the image. This fixes the issue by passing into write() the color-profile on the original image by way of the image info dictionary.
Always use compat.BufferIO in pil_engine.
Update short description of sorl-thumbnail
Update sorl-thumbnail short description
Option to add padding around the thumbnail.
Add documentation
Merge pull request #199 from fusionbox/padding

New feature that adds a padding to the image should it fits the size geometry.
Merge pull request #200 from xyz666/use_bufferio_in_pil_engine

Always use compat.BufferIO in pil_engine.
Tests for normalizing UrlStorage url to prevent 505 HTTP errors #200