tools (images): fixed type for recommended_size.

This commit is contained in:
Goffi 2020-02-05 23:59:19 +01:00
commit 5fae77187a

View file

@ -50,7 +50,7 @@ def checkImage(host, path, context=C.CONTEXT_CHAT):
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