Backport resize transformation math operation fix, GitLab issue #319. Thanks to @startmat for the find.

This commit is contained in:
Roberto Rosario
2016-11-08 01:51:27 -04:00
parent f978bd4982
commit f98063835a
2 changed files with 5 additions and 1 deletions

View File

@@ -1,3 +1,7 @@
2.1.5 (2016-xx-xx)
==================
- Backport resize transformation math operation fix (GitLab #319).
2.1.4 (2016-10-28)
==================
- Add missing link to the 2.1.3 release notes in the index file.

View File

@@ -258,7 +258,7 @@ class TransformationResize(BaseTransformation):
fit = False
width = int(self.width)
height = int(self.height or 1.0 * width * self.aspect)
height = int(self.height or 1.0 * width / self.aspect)
factor = 1
while self.image.size[0] / factor > 2 * width and self.image.size[1] * 2 / factor > 2 * height: