Fix imagekit properties & add regenerate thumbnails command
This commit is contained in:
parent
b7c183d2f3
commit
ff3567d3d0
3 changed files with 48 additions and 6 deletions
|
@ -3,13 +3,13 @@ from django.utils.html import format_html
|
|||
from imagekit import ImageSpec
|
||||
from imagekit.admin import AdminThumbnail
|
||||
from imagekit.cachefiles import ImageCacheFile
|
||||
from imagekit.processors import ResizeToFill
|
||||
from imagekit.processors import ResizeToFit
|
||||
|
||||
from gallery.models import Album, City, Location, Photo
|
||||
|
||||
|
||||
class AdminThumbnailSpec(ImageSpec):
|
||||
processors = [ResizeToFill(50, 50)]
|
||||
processors = [ResizeToFit(100, 100)]
|
||||
format = 'JPEG'
|
||||
options = {'quality': 60}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue