John Smith commited on
Commit
2dcf048
·
1 Parent(s): 9004c3c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -161,10 +161,10 @@ def image_properties(img):
161
  """
162
  global img_mode
163
  if img:
164
- if has_transparency(img):
165
- img_mode = "RGBA"
166
- else:
167
- img_mode = "RGB"
168
  properties = f"Width: {img.size[0]}, Height: {img.size[1]} | Color Mode: {img_mode}"
169
  return properties
170
 
 
161
  """
162
  global img_mode
163
  if img:
164
+ #if has_transparency(img):
165
+ # img_mode = "RGBA"
166
+ #else:
167
+ # img_mode = "RGB"
168
  properties = f"Width: {img.size[0]}, Height: {img.size[1]} | Color Mode: {img_mode}"
169
  return properties
170