Mercurial > libervia-backend
diff sat/tools/images.py @ 3157:8b4354b5c05f
tools (images): fixed type for recommended_size.
author | Goffi <goffi@goffi.org> |
---|---|
date | Wed, 05 Feb 2020 23:59:19 +0100 |
parents | 559a625a236b |
children | 5c3bf37f2202 |
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