From 559bb41943784d5a717a44a3d3a4b7b30710add5 Mon Sep 17 00:00:00 2001 From: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Sun, 8 Sep 2024 06:54:04 +0000 Subject: [PATCH] fixup: Format Python code with Black --- video_creation/final_video.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/video_creation/final_video.py b/video_creation/final_video.py index 1fa4d4a..85a0c1f 100644 --- a/video_creation/final_video.py +++ b/video_creation/final_video.py @@ -117,6 +117,7 @@ def get_text_height(draw, text, font, max_width): total_height += height return total_height + def create_fancy_thumbnail(image, text, text_color, padding, wrap=35): """ It will take the 1px from the middle of the template and will be resized (stretched) vertically to accommodate the extra height needed for the title. @@ -130,7 +131,7 @@ def create_fancy_thumbnail(image, text, text_color, padding, wrap=35): draw = ImageDraw.Draw(image) text_height = get_text_height(draw, text, font, wrap) lines = textwrap.wrap(text, width=wrap) - # This are -50 to reduce the empty space at the bottom of the image, + # This are -50 to reduce the empty space at the bottom of the image, # change it as per your requirement if needed otherwise leave it. new_image_height = image_height + text_height + padding * (len(lines) - 1) - 50