From dd5efac0ebcc9b2be571daaf8bcbc72c3c0b6b57 Mon Sep 17 00:00:00 2001 From: Matthew Tretter Date: Fri, 17 Feb 2012 22:26:10 -0500 Subject: [PATCH] A little AddBorer cleanup --- imagekit/processors/resize.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/imagekit/processors/resize.py b/imagekit/processors/resize.py index 5ce1c39..c8e457f 100644 --- a/imagekit/processors/resize.py +++ b/imagekit/processors/resize.py @@ -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):