changeset 3157:8b4354b5c05f

tools (images): fixed type for recommended_size.
author Goffi <goffi@goffi.org>
date Wed, 05 Feb 2020 23:59:19 +0100
parents 0318802dfe28
children 6032245c927e
files sat/tools/images.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/sat/tools/images.py	Tue Feb 04 19:59:42 2020 +0100
+++ b/sat/tools/images.py	Wed Feb 05 23:59:19 2020 +0100
@@ -50,7 +50,7 @@
                 factor = max_size[1] / image.size[1]
         else:
             factor = max_size[1] / image.size[1]
-        report['recommended_size'] = [image.width*factor, image.height*factor]
+        report['recommended_size'] = [int(image.width*factor), int(image.height*factor)]
     else:
         report['too_large'] = False