1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-04-14 17:52:10 -04:00

wallpapers: support more image formats + case insensitivity

fixes #1694
fixes #1660
This commit is contained in:
bbedward
2026-02-15 16:21:44 -05:00
parent abff670814
commit 0a9a34912e
9 changed files with 88 additions and 15 deletions

View File

@@ -30,7 +30,7 @@ StyledRect {
function determineFileType(fileName) {
const ext = getFileExtension(fileName);
const imageExts = ["png", "jpg", "jpeg", "gif", "bmp", "webp", "svg", "ico"];
const imageExts = ["png", "jpg", "jpeg", "gif", "bmp", "webp", "svg", "ico", "jxl", "avif", "heif", "exr"];
if (imageExts.includes(ext)) {
return "image";
}