gojiteji commited on
Commit
17e1573
1 Parent(s): be438a1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -172,6 +172,8 @@ def generate(logo=None, Vtubername=""):
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
 
172
  def resize_caption_to_logo(logo, caption):
173
  logo_width = logo.width
174
  target_caption_width = int(logo_width)
175
+ logo_height = logo.height
176
+ target_caption_width = int(logo_height)
177
 
178
  if caption.width > target_caption_width:
179
  aspect_ratio = caption.height / caption.width