feat: automatic image croping to match aspect ratio

This commit is contained in:
Yannik Schmidt
2024-03-24 17:29:26 +01:00
parent c3126e3b22
commit eeeee4c94e
3 changed files with 22 additions and 11 deletions

View File

@@ -186,7 +186,8 @@ def create_main_window_tile(software):
if software.get_thumbnail():
img = PIL.Image.open(software.get_thumbnail())
img = img.resize((200, 300))
img = imagetools.smart_resize(img, 200, 300)
#img = img.resize((200, 300))
else:
img = PIL.Image.new('RGB', (200, 300))