photoblog/specs.py @ 02c8b7019c84

Updated the ignore to hide messengerbag.
author Steve Losh <steve@stevelosh.com>
date Wed, 11 Mar 2009 17:45:21 -0400
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]