mirror of
https://github.com/Paillat-dev/viralfactory.git
synced 2026-01-02 01:06:19 +00:00
Add stroke color and stroke width to captioning engine
This commit is contained in:
@@ -23,6 +23,8 @@ class SimpleCaptioningEngine(BaseCaptioningEngine):
|
|||||||
fontsize=self.font_size,
|
fontsize=self.font_size,
|
||||||
color=self.font_color,
|
color=self.font_color,
|
||||||
font=self.font,
|
font=self.font,
|
||||||
|
stroke_color=self.stroke_color,
|
||||||
|
stroke_width=self.stroke_width,
|
||||||
method="caption",
|
method="caption",
|
||||||
size=(self.ctx.width /3 * 2, None),
|
size=(self.ctx.width /3 * 2, None),
|
||||||
).set_position(('center', 0.65), relative=True).set_start(start).set_duration(end - start)
|
).set_position(('center', 0.65), relative=True).set_start(start).set_duration(end - start)
|
||||||
@@ -89,7 +91,7 @@ class SimpleCaptioningEngine(BaseCaptioningEngine):
|
|||||||
minimum=0,
|
minimum=0,
|
||||||
maximum=40,
|
maximum=40,
|
||||||
step=1,
|
step=1,
|
||||||
value=4,
|
value=6,
|
||||||
)
|
)
|
||||||
font_stroke_color = gr.ColorPicker(label="Stroke Color", value="#000000")
|
font_stroke_color = gr.ColorPicker(label="Stroke Color", value="#000000")
|
||||||
return [font, font_size, font_stroke_width, font_color, font_stroke_color]
|
return [font, font_size, font_stroke_width, font_color, font_stroke_color]
|
||||||
|
|||||||
Reference in New Issue
Block a user