Backport resize transformation math operation fix, GitLab issue #319. Thanks to @startmat for the find.
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user