From afb8b0617a86e11e18be556a8c21a77554c6967f Mon Sep 17 00:00:00 2001 From: Zevaryx Date: Sat, 26 Jun 2021 22:54:01 -0600 Subject: [PATCH] Change ratio modifier to 0.02 --- jarvis/cogs/image.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jarvis/cogs/image.py b/jarvis/cogs/image.py index da8a1c3..57a206d 100644 --- a/jarvis/cogs/image.py +++ b/jarvis/cogs/image.py @@ -56,7 +56,7 @@ class ImageCog(commands.Cog): await ctx.send("Image already meets target.") return - ratio = tgt_size / size - 0.05 + ratio = tgt_size / size - 0.02 # TODO: Optimize to not run multiple times while len(file) > tgt_size: @@ -69,7 +69,7 @@ class ImageCog(commands.Cog): new_img = cv2.resize(img, (width, height)) file = cv2.imencode(".png", new_img)[1].tobytes() - ratio = tgt_size / len(file) - 0.05 + ratio = tgt_size / len(file) - 0.02 bufio = BytesIO(file) await ctx.send(