blanchon commited on
Commit
cd876e1
·
1 Parent(s): 67237f1

Must be divisble by 16

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -48,9 +48,9 @@ else:
48
 
49
  def calculate_optimal_dimensions(image: Image.Image) -> tuple[int, int]:
50
  width, height = image.size
51
- # Ensure dimensions are multiples of 8
52
- width = (width // 8) * 8
53
- height = (height // 8) * 8
54
 
55
  return int(width), int(height)
56
 
 
48
 
49
  def calculate_optimal_dimensions(image: Image.Image) -> tuple[int, int]:
50
  width, height = image.size
51
+ # Ensure dimensions are multiples of 16
52
+ width = (width // 16) * 16
53
+ height = (height // 16) * 16
54
 
55
  return int(width), int(height)
56