From b896476cd20989215759b82eb68a32623eb37efb Mon Sep 17 00:00:00 2001 From: "Fredrick W. Warren" Date: Sun, 29 May 2022 12:24:17 -0700 Subject: [PATCH] fill in subtile field --- hcatitles.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/hcatitles.py b/hcatitles.py index 758a3e3..5163221 100644 --- a/hcatitles.py +++ b/hcatitles.py @@ -20,10 +20,11 @@ def update_image(original, title, subtitle): def update_thumbnail(image): """genreate thumbnail from original image""" + """454-720""" thumbnail = image.resize((720, 360)) white = (255, 255, 255, 255) - ImageDraw.floodfill(image, (5,5), value=white) - ImageDraw.floodfill(image, (5,355), value=white) + ImageDraw.floodfill(thumbnail, (5,5), value=white) + ImageDraw.floodfill(thumbnail, (5,355), value=white) return thumbnail @@ -36,8 +37,8 @@ def build_layout(image_path): layout = [[sg.Input(title, key = '-TITLE-')]] )], [ - sg.Frame(subtitle, - layout = [[sg.Input(key = '-SUBTITLE-')]] + sg.Frame('subtitle', + layout = [[sg.Input(subtitle, key = '-SUBTITLE-')]] )], [ sg.Button('Save image', key= '-SAVE-')],