Properly calculate ratio
This commit is contained in:
parent
8e7ebc940f
commit
9a35051a71
1 changed files with 1 additions and 1 deletions
|
@ -56,7 +56,7 @@ class ImageCog(commands.Cog):
|
|||
await ctx.send("Image already meets target.")
|
||||
return
|
||||
|
||||
ratio = size / tgt_size
|
||||
ratio = tgt_size / size
|
||||
|
||||
buffer = np.frombuffer(file, dtype=np.uint8)
|
||||
img = cv2.imdecode(buffer, flags=-1)
|
||||
|
|
Loading…
Add table
Reference in a new issue