revert image resize
Browse files
app.py
CHANGED
@@ -131,10 +131,10 @@ def main(
|
|
131 |
image = Image.open(bytes)
|
132 |
if image.mode != 'RGB':
|
133 |
image = image.convert('RGB')
|
134 |
-
width = 336
|
135 |
-
aspect_ratio = float(image.height) / float(image.width)
|
136 |
-
height = int(width * aspect_ratio)
|
137 |
-
image = image.resize((width, height), Image.Resampling.LANCZOS)
|
138 |
images.append((image, title))
|
139 |
except Exception as e:
|
140 |
print(e)
|
|
|
131 |
image = Image.open(bytes)
|
132 |
if image.mode != 'RGB':
|
133 |
image = image.convert('RGB')
|
134 |
+
# width = 336
|
135 |
+
# aspect_ratio = float(image.height) / float(image.width)
|
136 |
+
# height = int(width * aspect_ratio)
|
137 |
+
# image = image.resize((width, height), Image.Resampling.LANCZOS)
|
138 |
images.append((image, title))
|
139 |
except Exception as e:
|
140 |
print(e)
|