mirror of
https://github.com/Hopiu/django-imagekit.git
synced 2026-03-16 21:30:23 +00:00
Cover renamed to ResizeToCover
This commit is contained in:
parent
2431aa2d2e
commit
8fc71e689a
1 changed files with 3 additions and 3 deletions
|
|
@ -21,7 +21,7 @@ class Resize(object):
|
|||
return img.resize((self.width, self.height), Image.ANTIALIAS)
|
||||
|
||||
|
||||
class Cover(object):
|
||||
class ResizeToCover(object):
|
||||
"""
|
||||
Resizes the image to the smallest possible size that will entirely cover the
|
||||
provided dimensions. You probably won't be using this processor directly,
|
||||
|
|
@ -64,7 +64,7 @@ class ResizeToFill(object):
|
|||
|
||||
def process(self, img):
|
||||
from .crop import Crop
|
||||
img = Cover(self.width, self.height).process(img)
|
||||
img = ResizeToCover(self.width, self.height).process(img)
|
||||
return Crop(self.width, self.height,
|
||||
anchor=self.anchor).process(img)
|
||||
|
||||
|
|
@ -86,7 +86,7 @@ class SmartResize(object):
|
|||
|
||||
def process(self, img):
|
||||
from .crop import SmartCrop
|
||||
img = Cover(self.width, self.height).process(img)
|
||||
img = ResizeToCover(self.width, self.height).process(img)
|
||||
return SmartCrop(self.width, self.height).process(img)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue