자막 템플릿 조정
parent
bcd2c0a96f
commit
8ae2a68ae4
|
|
@ -65,12 +65,11 @@ text_template_v_1 = {
|
||||||
{
|
{
|
||||||
"type": "text",
|
"type": "text",
|
||||||
"time": 0,
|
"time": 0,
|
||||||
"y": "80%",
|
"y": "87.9086%",
|
||||||
"width": "100%",
|
"width": "100%",
|
||||||
"height": "40%",
|
"height": "40%",
|
||||||
"x_alignment": "50%",
|
"x_alignment": "50%",
|
||||||
"y_alignment": "50%",
|
"y_alignment": "50%",
|
||||||
"text": "Lorem ipsum dolor sit amet, consectetur ad",
|
|
||||||
"font_family": "Noto Sans",
|
"font_family": "Noto Sans",
|
||||||
"font_weight": "700",
|
"font_weight": "700",
|
||||||
"font_size": "8 vmin",
|
"font_size": "8 vmin",
|
||||||
|
|
@ -79,8 +78,8 @@ text_template_v_1 = {
|
||||||
"background_y_padding": "7%",
|
"background_y_padding": "7%",
|
||||||
"background_border_radius": "28%",
|
"background_border_radius": "28%",
|
||||||
"fill_color": "#ffffff",
|
"fill_color": "#ffffff",
|
||||||
"stroke_color": "#333333",
|
"stroke_color": "rgba(51,51,51,1)",
|
||||||
"stroke_width": "1.25 vmin",
|
"stroke_width": "0.6 vmin",
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
@ -88,21 +87,22 @@ text_template_v_2 = {
|
||||||
"type": "composition",
|
"type": "composition",
|
||||||
"track": 3,
|
"track": 3,
|
||||||
"elements": [
|
"elements": [
|
||||||
{
|
{
|
||||||
"type": "text",
|
"type": "text",
|
||||||
"time": 0,
|
"time": 0,
|
||||||
"x": "7.7233%",
|
"x": "7.7233%",
|
||||||
"y": "89.5758%",
|
"y": "82.9852%",
|
||||||
"width": "84.5534%",
|
"width": "84.5534%",
|
||||||
"height": "5.7015%",
|
"height": "5.7015%",
|
||||||
"x_anchor": "0%",
|
"x_anchor": "0%",
|
||||||
"y_anchor": "0%",
|
"y_anchor": "0%",
|
||||||
"y_alignment": "100%",
|
"x_alignment": "50%",
|
||||||
"font_family": "Noto Sans",
|
"y_alignment": "100%",
|
||||||
"font_weight": "700",
|
"font_family": "Noto Sans",
|
||||||
"font_size": "6.9999 vmin",
|
"font_weight": "700",
|
||||||
"fill_color": "#ffffff"
|
"font_size": "6.9999 vmin",
|
||||||
}
|
"fill_color": "#ffffff"
|
||||||
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -556,7 +556,7 @@ class CreatomateService:
|
||||||
def get_text_template(self):
|
def get_text_template(self):
|
||||||
match self.orientation:
|
match self.orientation:
|
||||||
case "vertical":
|
case "vertical":
|
||||||
return text_template_v_1
|
return text_template_v_2
|
||||||
case "horizontal":
|
case "horizontal":
|
||||||
return text_template_h_1
|
return text_template_h_1
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue