Permalink
Browse files

Add __init__ to Reflection processor; closes #141

  • Loading branch information...
1 parent f3008f6 commit 23c6e9a70ed8c40f6c7c02ca0e7624a735208411 @matthewwithanm committed Jul 26, 2012
Showing with 4 additions and 3 deletions.
  1. +4 −3 imagekit/processors/base.py
@@ -69,9 +69,10 @@ class Reflection(object):
Creates an image with a reflection.
"""
- background_color = '#FFFFFF'
- size = 0.0
- opacity = 0.6
+ def __init__(self, background_color='#FFFFFF', size=0.0, opacity=0.6):
+ self.background_color = background_color
+ self.size = size
+ self.opacity = opacity
def process(self, img):
# Convert bgcolor string to RGB value.

0 comments on commit 23c6e9a

Please sign in to comment.