자막 템플릿 조정

insta
jaehwang 2026-01-21 06:25:53 +00:00
parent bcd2c0a96f
commit 8ae2a68ae4
1 changed files with 20 additions and 20 deletions

View File

@ -65,12 +65,11 @@ text_template_v_1 = {
{
"type": "text",
"time": 0,
"y": "80%",
"y": "87.9086%",
"width": "100%",
"height": "40%",
"x_alignment": "50%",
"y_alignment": "50%",
"text": "Lorem ipsum dolor sit amet, consectetur ad",
"font_family": "Noto Sans",
"font_weight": "700",
"font_size": "8 vmin",
@ -79,8 +78,8 @@ text_template_v_1 = {
"background_y_padding": "7%",
"background_border_radius": "28%",
"fill_color": "#ffffff",
"stroke_color": "#333333",
"stroke_width": "1.25 vmin",
"stroke_color": "rgba(51,51,51,1)",
"stroke_width": "0.6 vmin",
}
]
}
@ -92,11 +91,12 @@ text_template_v_2 = {
"type": "text",
"time": 0,
"x": "7.7233%",
"y": "89.5758%",
"y": "82.9852%",
"width": "84.5534%",
"height": "5.7015%",
"x_anchor": "0%",
"y_anchor": "0%",
"x_alignment": "50%",
"y_alignment": "100%",
"font_family": "Noto Sans",
"font_weight": "700",
@ -556,7 +556,7 @@ class CreatomateService:
def get_text_template(self):
match self.orientation:
case "vertical":
return text_template_v_1
return text_template_v_2
case "horizontal":
return text_template_h_1