Spaces:
Paused
Paused
Update app.py
Browse files
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(
|
| 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-
|
| 190 |
-
upper_right=(title_logo.width-caption.width-60,int(caption.height+
|
| 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
|