From 8fc71e689a14f3475acbd1ed82ad553f4c6b10be Mon Sep 17 00:00:00 2001 From: Matthew Tretter Date: Sat, 18 Feb 2012 01:38:19 -0500 Subject: [PATCH] Cover renamed to ResizeToCover --- imagekit/processors/resize.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/imagekit/processors/resize.py b/imagekit/processors/resize.py index 721768a..e4b747a 100644 --- a/imagekit/processors/resize.py +++ b/imagekit/processors/resize.py @@ -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)