summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2022-07-27 21:24:46 -0300
committerJesusaves <cpntb1@ymail.com>2022-07-27 21:24:46 -0300
commit2d0cd31449095c7d9bcd2d35206604b976cd1f91 (patch)
tree004a3987517893c12016465efbff1bbf0695c8ba
parent8b480d3a08c7ccf327ef3f04a1cc81c547edbdfe (diff)
downloadupdates-2d0cd31449095c7d9bcd2d35206604b976cd1f91.tar.gz
updates-2d0cd31449095c7d9bcd2d35206604b976cd1f91.tar.bz2
updates-2d0cd31449095c7d9bcd2d35206604b976cd1f91.tar.xz
updates-2d0cd31449095c7d9bcd2d35206604b976cd1f91.zip
Remove useless code
-rwxr-xr-xmobs.py11
1 files changed, 1 insertions, 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: