fill in subtile field
This commit is contained in:
parent
ce9f3f1c66
commit
b896476cd2
@ -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-')],
|
||||
|
Loading…
Reference in New Issue
Block a user