Fix bug with black mat_color

This commit is contained in:
Matthew Tretter 2012-11-05 22:22:34 -05:00
parent 6255b93b78
commit c752eea6a0

View file

@ -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