Fix saving in unsupported modes with Pillow

This commit is contained in:
kramo
2023-04-17 18:22:16 +02:00
parent 838460ce2a
commit 297bea8494
2 changed files with 10 additions and 4 deletions

View File

@@ -50,7 +50,7 @@ class GameCover:
self.path = path
if path:
if str(path).rsplit(".", maxsplit=1)[-1] == "gif":
if path.suffix == ".gif":
task = Gio.Task.new()
task.run_in_thread(self.create_func(self.path))
else: