mirror of
https://expo.survex.com/repositories/troggle/.git
synced 2024-12-04 23:52:18 +00:00
e565a6b73b
perl -p -i -e "s/expo(?=[\s\.']+)/core/g" `find -name \*.py` and then manually checked each change (had to remove a couple)
23 lines
496 B
Python
23 lines
496 B
Python
from imagekit.specs import ImageSpec
|
|
from imagekit import processors
|
|
|
|
class ResizeThumb(processors.Resize):
|
|
width = 100
|
|
crop = False
|
|
|
|
class ResizeDisplay(processors.Resize):
|
|
width = 600
|
|
|
|
#class EnhanceThumb(processors.Adjustment):
|
|
#contrast = 1.2
|
|
#sharpness = 2
|
|
|
|
class Thumbnail(ImageSpec):
|
|
access_as = 'thumbnail_image'
|
|
pre_cache = True
|
|
processors = [ResizeThumb]
|
|
|
|
class Display(ImageSpec):
|
|
increment_count = True
|
|
processors = [ResizeDisplay]
|