mirror of
https://github.com/Hopiu/django-imagekit.git
synced 2026-04-25 23:44:45 +00:00
Rename crop function to show it's internal
This commit is contained in:
parent
4278a95001
commit
80a26a4f09
1 changed files with 2 additions and 2 deletions
|
|
@ -10,7 +10,7 @@ class Side(object):
|
|||
ALL = (TOP, RIGHT, BOTTOM, LEFT)
|
||||
|
||||
|
||||
def crop(img, bbox, sides=Side.ALL):
|
||||
def _crop(img, bbox, sides=Side.ALL):
|
||||
bbox = (
|
||||
bbox[0] if Side.LEFT in sides else 0,
|
||||
bbox[1] if Side.TOP in sides else 0,
|
||||
|
|
@ -67,7 +67,7 @@ class TrimBorderColor(object):
|
|||
|
||||
bbox = diff.getbbox()
|
||||
if bbox:
|
||||
img = crop(img, bbox, self.sides)
|
||||
img = _crop(img, bbox, self.sides)
|
||||
return img
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue