photoblog/specs.py @ 8d75ea2ae6de

Goodbye thoughts, youll live on in version control!
author Steve Losh <steve@stevelosh.com>
date Sun, 15 Feb 2009 00:54:05 -0500
parents 677d5ff5c56e
children (none)
from imagekit.specs import ImageSpec
from imagekit import processors

class ResizeThumb(processors.Resize):
    height = 50

class EnchanceThumb(processors.Adjustment): 
    contrast = 1.2
    sharpness = 1.1

class Thumbnail(ImageSpec):
    access_as = 'thumbnail'
    pre_cache = True
    processors = [ResizeThumb, EnchanceThumb]