diff --git a/hcatitles.py b/hcatitles.py index 63fbffa..80508ea 100644 --- a/hcatitles.py +++ b/hcatitles.py @@ -20,11 +20,12 @@ 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(thumbnail, (5,5), value=white) - ImageDraw.floodfill(thumbnail, (5,355), value=white) + """454-720 scales to 227-360""" + scaled = image.resize((720, 360)) + # white = (255, 255, 255, 255) + # ImageDraw.floodfill(scaled, (5, 5), value=white) + # ImageDraw.floodfill(scaled, (5, 355), value=white) + thumbnail = scaled.crop((0, 255, 719, 359)) return thumbnail