mirror of
https://github.com/Hopiu/django-imagekit.git
synced 2026-03-16 21:30:23 +00:00
Only one return
This commit is contained in:
parent
09b97ee62f
commit
c2a4d01b7c
1 changed files with 1 additions and 1 deletions
|
|
@ -114,7 +114,7 @@ class Fit(object):
|
|||
if self.mat_color:
|
||||
new_img = Image.new('RGBA', (self.width, self.height), self.mat_color)
|
||||
new_img.paste(img, ((self.width - img.size[0]) / 2, (self.height - img.size[1]) / 2))
|
||||
return new_img
|
||||
img = new_img
|
||||
return img
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue