Make custom thumbnails only changing the template code.
Python Makefile
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
assets
doc
moar
tests
.coveragerc
.gitignore
LICENSE
MANIFEST.in
Makefile
README.rst
gamma-1.0-or-2.2.png
requirements-tests.txt
requirements.txt
setup.py
tox.ini

README.rst

Welcome to Moar

Moar is a on-the-fly thubnailer 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 on the fly, just changing a line in your templates.

<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.

See the documentation online at http://lucuma.github.com/moar/

Features at a glance

  • Pluggable engine support (PIL/Pillow and Wand <http://docs.wand-py.org/> included).
  • Automatic cache: a thumbnail is generated only once.
  • Pluggable storage support (FileSystem included).
  • Flexible, simple syntax, generates no HTML.
  • Several filters available by default:
    • Cropping
    • Rotation
    • Blur
    • Grayscale/Sepia
  • Easily extendable without much code

copyright:Juan-Pablo Scaletti.
license:MIT, see LICENSE for more details.