Skip to content

Commit

Permalink
Rename BasicResize to Resize
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewwithanm committed Feb 18, 2012
1 parent 3fad906 commit 5a8564d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions imagekit/processors/resize.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from . import Anchor


class BasicResize(object):
class Resize(object):
"""
Resizes an image to the specified width and height.
Expand Down Expand Up @@ -43,7 +43,7 @@ def process(self, img):
float(self.height) / original_height)
new_width, new_height = (int(original_width * ratio),
int(original_height * ratio))
return BasicResize(new_width, new_height).process(img)
return Resize(new_width, new_height).process(img)


class Fill(object):
Expand Down Expand Up @@ -212,7 +212,7 @@ def process(self, img):
int(round(cur_height * ratio)))
if (cur_width > new_dimensions[0] or cur_height > new_dimensions[1]) or \
self.upscale:
img = BasicResize(new_dimensions[0],
img = Resize(new_dimensions[0],
new_dimensions[1]).process(img)
if self.mat_color:
img = ResizeCanvas(self.width, self.height, self.mat_color, anchor=self.anchor).process(img)
Expand Down

0 comments on commit 5a8564d

Please sign in to comment.