Update video.py
Browse files
video.py
CHANGED
@@ -16,7 +16,7 @@ def create_text_image(text,id,image_olst, image_size=(1280, 720), bg_color="whit
|
|
16 |
|
17 |
font_path = "/usr/share/fonts/truetype/liberation/LiberationSans-Regular.ttf"
|
18 |
bold_font_path = "/usr/share/fonts/truetype/liberation/LiberationSans-Bold.ttf"
|
19 |
-
max_font_size =
|
20 |
min_font_size = 10
|
21 |
|
22 |
best_font = None
|
@@ -72,5 +72,4 @@ def create_text_image(text,id,image_olst, image_size=(1280, 720), bg_color="whit
|
|
72 |
image_name="slide"+str(id)+".png"
|
73 |
image_olst.append(image_name)
|
74 |
image_path=os.path.join(IMAGE_DIR,image_name)
|
75 |
-
image.save(image_path)
|
76 |
-
|
|
|
16 |
|
17 |
font_path = "/usr/share/fonts/truetype/liberation/LiberationSans-Regular.ttf"
|
18 |
bold_font_path = "/usr/share/fonts/truetype/liberation/LiberationSans-Bold.ttf"
|
19 |
+
max_font_size = 55
|
20 |
min_font_size = 10
|
21 |
|
22 |
best_font = None
|
|
|
72 |
image_name="slide"+str(id)+".png"
|
73 |
image_olst.append(image_name)
|
74 |
image_path=os.path.join(IMAGE_DIR,image_name)
|
75 |
+
image.save(image_path)
|
|