2
0
mirror of https://github.com/Nick80835/microbot synced 2025-08-31 14:38:04 +00:00

improve pokemon

This commit is contained in:
Nick80835
2020-06-17 14:42:11 -04:00
parent 6ac128c50f
commit 0a12c1d622

View File

@@ -60,6 +60,8 @@ async def pokemon_image(event):
return
sticker_image = Image.open(io.BytesIO(sprite_io))
sticker_image = sticker_image.crop(sticker_image.getbbox())
sticker_image = sticker_image.resize((sticker_image.size[0]*4, sticker_image.size[1]*4), Image.NEAREST)
sticker_io = io.BytesIO()
sticker_image.save(sticker_io, "WebP", quality=99)
sticker_io.seek(0)