Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -46,7 +46,8 @@ def get_new_dimensions(width, height):
|
|
| 46 |
new_width += 1
|
| 47 |
|
| 48 |
# Adjust height to maintain the aspect ratio
|
| 49 |
-
new_height = int(new_width * (height /
|
|
|
|
| 50 |
|
| 51 |
# Adjust height to be a multiple of 32
|
| 52 |
while new_height % 32 != 0:
|
|
|
|
| 46 |
new_width += 1
|
| 47 |
|
| 48 |
# Adjust height to maintain the aspect ratio
|
| 49 |
+
new_height = int(new_width * (height / new_width))
|
| 50 |
+
|
| 51 |
|
| 52 |
# Adjust height to be a multiple of 32
|
| 53 |
while new_height % 32 != 0:
|