latostadaok commited on
Commit
ef257cb
·
1 Parent(s): 28c19b3

nuevas proporciones

Browse files
Files changed (1) hide show
  1. app.py +6 -0
app.py CHANGED
@@ -115,6 +115,8 @@ def get_image_size(aspect_ratio):
115
  """Converts aspect ratio string to width, height tuple."""
116
  if aspect_ratio == "1:1":
117
  return 1024, 1024
 
 
118
  elif aspect_ratio == "16:9":
119
  return 1152, 640
120
  elif aspect_ratio == "9:16":
@@ -127,6 +129,10 @@ def get_image_size(aspect_ratio):
127
  return 1024, 688
128
  elif aspect_ratio == "2:3":
129
  return 688, 1024
 
 
 
 
130
  else:
131
  return 1024, 1024
132
 
 
115
  """Converts aspect ratio string to width, height tuple."""
116
  if aspect_ratio == "1:1":
117
  return 1024, 1024
118
+ elif aspect_ratio == "2:1":
119
+ return 1280, 640
120
  elif aspect_ratio == "16:9":
121
  return 1152, 640
122
  elif aspect_ratio == "9:16":
 
129
  return 1024, 688
130
  elif aspect_ratio == "2:3":
131
  return 688, 1024
132
+ elif aspect_ratio == "3:1":
133
+ return 1920, 640
134
+ elif aspect_ratio == "2:1":
135
+ return 1280, 640
136
  else:
137
  return 1024, 1024
138