mirror of
https://github.com/Hopiu/django-imagekit.git
synced 2026-03-16 21:30:23 +00:00
Fix bug with black mat_color
This commit is contained in:
parent
6255b93b78
commit
c752eea6a0
1 changed files with 1 additions and 1 deletions
|
|
@ -215,6 +215,6 @@ class ResizeToFit(object):
|
|||
self.upscale:
|
||||
img = Resize(new_dimensions[0],
|
||||
new_dimensions[1]).process(img)
|
||||
if self.mat_color:
|
||||
if self.mat_color is not None:
|
||||
img = ResizeCanvas(self.width, self.height, self.mat_color, anchor=self.anchor).process(img)
|
||||
return img
|
||||
|
|
|
|||
Loading…
Reference in a new issue