Skip to content

Commit

Permalink
A little AddBorer cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewwithanm committed Feb 18, 2012
1 parent 441266a commit dd5efac
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions imagekit/processors/resize.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,10 +141,11 @@ class AddBorder(object):
Add a border of specific color and size to an image.
"""
def __init__(self, color, thickness):
def __init__(self, thickness, color=None):
"""
:param color: Color to use for the border
:param thickness: Thickness of the border which is either an int or a 4-tuple of ints.
:param thickness: Thickness of the border. Can be either an int or
a 4-tuple of ints of the form (top, right, bottom, left).
"""
self.color = color
if isinstance(thickness, int):
Expand Down

0 comments on commit dd5efac

Please sign in to comment.