diff options
author | Jesusaves <cpntb1@ymail.com> | 2022-07-27 21:24:46 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2022-07-27 21:24:46 -0300 |
commit | 2d0cd31449095c7d9bcd2d35206604b976cd1f91 (patch) | |
tree | 004a3987517893c12016465efbff1bbf0695c8ba | |
parent | 8b480d3a08c7ccf327ef3f04a1cc81c547edbdfe (diff) | |
download | updates-2d0cd31449095c7d9bcd2d35206604b976cd1f91.tar.gz updates-2d0cd31449095c7d9bcd2d35206604b976cd1f91.tar.bz2 updates-2d0cd31449095c7d9bcd2d35206604b976cd1f91.tar.xz updates-2d0cd31449095c7d9bcd2d35206604b976cd1f91.zip |
Remove useless code
-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: |