mirror of
https://github.com/FAUSheppy/homelab_gamevault
synced 2025-12-06 06:51:36 +01:00
feat: automatic image croping to match aspect ratio
This commit is contained in:
@@ -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))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user