Skip to content

Commit 96f73f6

Browse files
committed
cs_backgrounds: Recognize .avif files.
1 parent 331e0fc commit 96f73f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

files/usr/share/cinnamon/cinnamon-settings/modules/cs_backgrounds.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -609,7 +609,7 @@ def get_pix(self, filename, size=None):
609609
os.remove(cache_filename)
610610

611611
if not loaded:
612-
if mimetype == "image/svg+xml":
612+
if mimetype in ("image/svg+xml", "image/avif"):
613613
# rasterize svg with Gdk-Pixbuf and convert to PIL Image
614614
tmp_pix = GdkPixbuf.Pixbuf.new_from_file(filename)
615615
mode = "RGBA" if tmp_pix.props.has_alpha else "RGB"

0 commit comments

Comments
 (0)