mirror of
https://github.com/Hopiu/django-imagekit.git
synced 2026-05-02 02:14:43 +00:00
Add __init__ to Reflection processor; closes #141
This commit is contained in:
parent
f3008f68b8
commit
23c6e9a70e
1 changed files with 4 additions and 3 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Reference in a new issue