nuwandaa commited on
Commit
e148db0
·
verified ·
1 Parent(s): 6f3da65

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -22,7 +22,7 @@ def calculate_optimal_dimensions(image: Image.Image):
22
  # Set constants
23
  MIN_ASPECT_RATIO = 9 / 16
24
  MAX_ASPECT_RATIO = 16 / 9
25
- FIXED_DIMENSION = 1024
26
 
27
  # Calculate the aspect ratio of the original image
28
  original_aspect_ratio = original_width / original_height
 
22
  # Set constants
23
  MIN_ASPECT_RATIO = 9 / 16
24
  MAX_ASPECT_RATIO = 16 / 9
25
+ FIXED_DIMENSION = 2048
26
 
27
  # Calculate the aspect ratio of the original image
28
  original_aspect_ratio = original_width / original_height