Added new filesize to resize
This commit is contained in:
parent
d5d23c6f2c
commit
8442ed57d4
1 changed files with 4 additions and 1 deletions
|
@ -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):
|
||||||
|
|
Loading…
Add table
Reference in a new issue