soranz84 commited on
Commit
ae879b2
·
verified ·
1 Parent(s): 1fda3d0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -117,10 +117,13 @@ def process_image(image: PILImage.Image) -> tuple:
117
  # Samsung A32 5G Aspect ratio 16:9
118
  elif (width == 4000 and height == 2250) or (width == 2250 and height == 4000):
119
  scale = 1334/3744
 
 
 
120
  else:
121
  supported_device = False
122
  # Default scaling for unsupported devices
123
- scale = 400 / max(width, height)
124
 
125
  # Calculate new dimensions
126
  new_width = int(width * scale)
@@ -308,6 +311,7 @@ HTML_CONTENT = """
308
  <li>iPhone 14 (3024x4032)</li>
309
  <li>iPhone 16 (4284x5712)</li>
310
  <li>Samsung A32 G5</li>
 
311
  </ul>
312
  </div>
313
  </body>
 
117
  # Samsung A32 5G Aspect ratio 16:9
118
  elif (width == 4000 and height == 2250) or (width == 2250 and height == 4000):
119
  scale = 1334/3744
120
+ # Samsung Galaxy S23
121
+ elif (width == 4000 and height == 3000) or (width == 3000 and height == 4000):
122
+ scale = 1380/3746
123
  else:
124
  supported_device = False
125
  # Default scaling for unsupported devices
126
+ scale = 1
127
 
128
  # Calculate new dimensions
129
  new_width = int(width * scale)
 
311
  <li>iPhone 14 (3024x4032)</li>
312
  <li>iPhone 16 (4284x5712)</li>
313
  <li>Samsung A32 G5</li>
314
+ <li>Samsung Galaxy S23</li>
315
  </ul>
316
  </div>
317
  </body>