fffiloni commited on
Commit
b9d1cfa
·
1 Parent(s): 1e69927

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
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 / width))
 
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: