gojiteji commited on
Commit
8ba5375
1 Parent(s): 37c2d8c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -171,7 +171,7 @@ def generate(logo=None, Vtubername=""):
171
 
172
  def resize_caption_to_logo(logo, caption):
173
  logo_width = logo.width
174
- target_caption_width = int(0.6 * logo_width)
175
 
176
  if caption.width > target_caption_width:
177
  aspect_ratio = caption.height / caption.width
@@ -186,8 +186,8 @@ def generate(logo=None, Vtubername=""):
186
 
187
  center=((title_logo.width - caption.width) // 2,title_logo.height//2)
188
  bottom=(title_logo.width-caption.width)//2,int(title_logo.height-caption.height-100)
189
- lower_right=(title_logo.width-caption.width-40,int(title_logo.height-caption.height-60))
190
- upper_right=(title_logo.width-caption.width-60,int(caption.height+60))
191
 
192
 
193
  # Define the possible positions
 
171
 
172
  def resize_caption_to_logo(logo, caption):
173
  logo_width = logo.width
174
+ target_caption_width = int(logo_width)
175
 
176
  if caption.width > target_caption_width:
177
  aspect_ratio = caption.height / caption.width
 
186
 
187
  center=((title_logo.width - caption.width) // 2,title_logo.height//2)
188
  bottom=(title_logo.width-caption.width)//2,int(title_logo.height-caption.height-100)
189
+ lower_right=(title_logo.width-caption.width-40,int(title_logo.height-caption.height-80))
190
+ upper_right=(title_logo.width-caption.width-60,int(caption.height+80))
191
 
192
 
193
  # Define the possible positions