photoblog/specs.py @ 7e2a0c0282b3

Really, Firefox?  I actually have to tell you to inherit the font-weight for a *div*?
author Steve Losh <steve@stevelosh.com>
date Thu, 19 Mar 2009 20:53:53 -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]