Adaptive cover resolution for still images

This commit is contained in:
kramo
2023-04-11 17:44:39 +02:00
parent fd9e0511d0
commit 2303c2e6da
3 changed files with 15 additions and 8 deletions

View File

@@ -56,7 +56,7 @@ def save_cover(
elif not pixbuf:
try:
pixbuf = GdkPixbuf.Pixbuf.new_from_file_at_scale(
str(cover_path), 400, 600, False
str(cover_path), *parent_widget.image_size, False
)
except GLib.GError:
return