Support all formats supported by PIL - closes #72

This commit is contained in:
kramo
2023-04-16 20:59:53 +02:00
parent 8832bb36f4
commit a6523aee16
3 changed files with 26 additions and 15 deletions

View File

@@ -54,9 +54,7 @@ class GameCover:
task = Gio.Task.new()
task.run_in_thread(self.create_func(self.path))
else:
self.pixbuf = GdkPixbuf.Pixbuf.new_from_file_at_scale(
str(path), 200, 300, False
)
self.pixbuf = GdkPixbuf.Pixbuf.new_from_file(str(path))
if not self.animation:
self.set_pixbuf(self.pixbuf)