Welcome to Moar, an on-the-fly image thumbnailer library written in Python and MIT licensed.
Your site design changes a lot, but that means manually generate new thumbnails for all the uploaded images. Not anymore. With Moar you can upload once and generate thumbnails dynamically, just changing a line in your templates.
Example (using Jinja2):
<img src="{{ thumbnail(source, '200x100', ['crop', 50, 50]) }}" />
The thumbnails are cached and can be deleted or regenerated transparently. And the library can be extended to store them in custom backends.
Table of contents
Features at a glance
- Pluggable engine support (PIL and Wand (a wrapper for ImageMagick) included*).
- Automatic cache: a thumbnail is generated only once.
- Pluggable storage support.
- Flexible, simple syntax, generates no HTML.
- Auto-rotates the image according to its EXIF information.
- Several filters available by default:
- Cropping
- Rotation
- Blur
- Grayscale/Sepia *
- Easily extendable.
* The Wand engine doesn't have yet support for the grayscale/sepia filters.