From 2d0cd31449095c7d9bcd2d35206604b976cd1f91 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Wed, 27 Jul 2022 21:24:46 -0300 Subject: Remove useless code --- mobs.py | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/mobs.py b/mobs.py index 129d023..d235fd3 100755 --- a/mobs.py +++ b/mobs.py @@ -27,6 +27,7 @@ for it in os.listdir(pwd + "/ready-mobs"): print("%s" % it) # Get image size + # This is not needed; ImageMagick fixes aspect ratio on its own try: img = Image.open(path+it) w = img.width @@ -39,16 +40,6 @@ for it in os.listdir(pwd + "/ready-mobs"): # Max: 420x600 w5 = int(w); h5 = int(h) - """ - # Fix dimensions, width is priority - if h > 600: - w5 += ((600-h) * w) / h # As float - h5 = 600 - if w > 420: - h5 += ((420-w) * h) / w # As float - w5 = 420 - """ - # We resize based on "best dimension" # Relies on Python 3 division behavior if (w / h) >= 1: -- cgit v1.2.3-70-g09d2