mirror of
https://github.com/Hopiu/django-imagekit.git
synced 2026-03-26 18:00:23 +00:00
Added the quality property in the readme's ImageSpec classes just to show it is possible to change it at will.
This commit is contained in:
parent
25f628de93
commit
3bf844687d
1 changed files with 2 additions and 0 deletions
|
|
@ -67,12 +67,14 @@ Create your specifications.
|
|||
|
||||
# now we can define our thumbnail spec
|
||||
class Thumbnail(ImageSpec):
|
||||
quality = 90 // defaults to 70
|
||||
access_as = 'thumbnail_image'
|
||||
pre_cache = True
|
||||
processors = [ResizeThumb, EnchanceThumb]
|
||||
|
||||
# and our display spec
|
||||
class Display(ImageSpec):
|
||||
quality = 90 // defaults to 70
|
||||
increment_count = True
|
||||
processors = [ResizeDisplay]
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue