Added new filesize to resize

This commit is contained in:
Zeva Rose 2021-06-26 20:49:12 -06:00
parent d5d23c6f2c
commit 8442ed57d4

View file

@ -71,7 +71,10 @@ class ImageCog(commands.Cog):
file = cv2.imencode(".png", new_img)[1].tobytes() file = cv2.imencode(".png", new_img)[1].tobytes()
bufio = BytesIO(file) 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): def setup(bot):