mirror of
https://expo.survex.com/repositories/troggle/.git
synced 2024-11-22 23:31:52 +00:00
c45eb31e8f
Copied from http://cucc@cucc.survex.com/svn/trunk/expoweb/troggle/, rev. 8338 by cucc @ 5/11/2009 3:08 AM
22 lines
536 B
Python
22 lines
536 B
Python
""" Default ImageKit configuration """
|
|
|
|
from imagekit.specs import ImageSpec
|
|
from imagekit import processors
|
|
|
|
class ResizeThumbnail(processors.Resize):
|
|
width = 100
|
|
height = 50
|
|
crop = True
|
|
|
|
class EnhanceSmall(processors.Adjustment):
|
|
contrast = 1.2
|
|
sharpness = 1.1
|
|
|
|
class SampleReflection(processors.Reflection):
|
|
size = 0.5
|
|
background_color = "#000000"
|
|
|
|
class DjangoAdminThumbnail(ImageSpec):
|
|
access_as = 'admin_thumbnail'
|
|
processors = [ResizeThumbnail, EnhanceSmall, SampleReflection]
|