mirror of
https://github.com/Hopiu/django-imagekit.git
synced 2026-05-16 08:43:09 +00:00
15 lines
279 B
Python
15 lines
279 B
Python
|
|
from imagekit import specs
|
||
|
|
|
||
|
|
|
||
|
|
class ResizeThumbnail(specs.Resize):
|
||
|
|
width = 100
|
||
|
|
height = 75
|
||
|
|
crop = True
|
||
|
|
|
||
|
|
class EnhanceSmall(specs.Adjustment):
|
||
|
|
contrast = 1.2
|
||
|
|
sharpness = 1.1
|
||
|
|
|
||
|
|
class Thumbnail(specs.Spec):
|
||
|
|
processors = [ResizeThumbnail, EnhanceSmall]
|