diff options
Diffstat (limited to 'mobs.py')
-rwxr-xr-x | mobs.py | 11 |
1 files changed, 1 insertions, 10 deletions
@@ -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: |