Prevent unnecessary image.resize in TransformationZoom. Thanks to @startmat for the suggestion. GitLab issue #334.

This commit is contained in:
Roberto Rosario
2016-11-05 02:56:43 -04:00
parent 7c8fc51ad1
commit 19d20ff9d1

View File

@@ -324,6 +324,9 @@ class TransformationZoom(BaseTransformation):
def execute_on(self, *args, **kwargs):
super(TransformationZoom, self).execute_on(*args, **kwargs)
if self.percent == 100:
return self.image
decimal_value = float(self.percent) / 100
return self.image.resize(
(