Cover renamed to ResizeToCover

This commit is contained in:
Matthew Tretter 2012-02-18 01:38:19 -05:00
parent 2431aa2d2e
commit 8fc71e689a

View file

@ -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)