mirror of
https://github.com/Hopiu/django-imagekit.git
synced 2026-03-24 08:50:24 +00:00
No need for this.
This commit is contained in:
parent
544d5b874a
commit
80c785f2e5
2 changed files with 0 additions and 24 deletions
|
|
@ -1,23 +0,0 @@
|
|||
""" Default ImageKit configuration """
|
||||
|
||||
from imagekit.specs import ImageSpec
|
||||
from imagekit import processors
|
||||
|
||||
class ResizeThumbnail(processors.Crop):
|
||||
width = 100
|
||||
height = 50
|
||||
|
||||
class EnhanceSmall(processors.Adjust):
|
||||
contrast = 1.2
|
||||
sharpness = 1.1
|
||||
|
||||
class SampleReflection(processors.Reflection):
|
||||
size = 0.5
|
||||
background_color = "#000000"
|
||||
|
||||
class PNGFormat(processors.Format):
|
||||
format = 'PNG'
|
||||
extension = 'png'
|
||||
|
||||
class DjangoAdminThumbnail(ImageSpec):
|
||||
processors = [ResizeThumbnail(), EnhanceSmall(), SampleReflection(), PNGFormat()]
|
||||
|
|
@ -12,7 +12,6 @@ from imagekit.specs import ImageSpec
|
|||
from imagekit.lib import *
|
||||
from imagekit.options import Options
|
||||
from imagekit.utils import img_to_fobj
|
||||
from imagekit import defaults
|
||||
|
||||
# Modify image file buffer size.
|
||||
ImageFile.MAXBLOCK = getattr(settings, 'PIL_IMAGEFILE_MAXBLOCK', 256 * 2 ** 10)
|
||||
|
|
|
|||
Loading…
Reference in a new issue