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-')],