|
|
@ -117,6 +117,7 @@ def get_text_height(draw, text, font, max_width):
|
|
|
|
total_height += height
|
|
|
|
total_height += height
|
|
|
|
return total_height
|
|
|
|
return total_height
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def create_fancy_thumbnail(image, text, text_color, padding, wrap=35):
|
|
|
|
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.
|
|
|
|
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.
|
|
|
|