django-imagekit icon indicating copy to clipboard operation
django-imagekit copied to clipboard

Support "Simple" Processors

Open matthewwithanm opened this issue 12 years ago • 0 comments

We should consider supporting "simple" processors—callables that accept an image and return an image. That way you wouldn't have to define a processor class if you aren't accepting any arguments.

def dostuff(im):
    # whatever
    return im

# in your spec
processors = [ResizeToFit(100, 100), dostuff]

matthewwithanm avatar Jul 17 '13 03:07 matthewwithanm