From 8442ed57d4e021be35097bb4fd856be531e0b52b Mon Sep 17 00:00:00 2001 From: Zevaryx Date: Sat, 26 Jun 2021 20:49:12 -0600 Subject: [PATCH] Added new filesize to resize --- jarvis/cogs/image.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/jarvis/cogs/image.py b/jarvis/cogs/image.py index d711b5b..daac58b 100644 --- a/jarvis/cogs/image.py +++ b/jarvis/cogs/image.py @@ -71,7 +71,10 @@ class ImageCog(commands.Cog): file = cv2.imencode(".png", new_img)[1].tobytes() bufio = BytesIO(file) - await ctx.send(file=File(bufio, filename="resized.png")) + await ctx.send( + "New size: {}".format(convert_bytesize(len(file))), + file=File(bufio, filename="resized.png"), + ) def setup(bot):