From 5dc24b7686ec3a069ab16a3f9ede4883b280fea6 Mon Sep 17 00:00:00 2001 From: Bert Gijsbers Date: Thu, 12 Oct 2023 19:36:04 +0200 Subject: [PATCH] Support TIFF and WEBP in icewmbg. --- src/icewmbg.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/icewmbg.cc b/src/icewmbg.cc index 8cdb48098..c012deb42 100644 --- a/src/icewmbg.cc +++ b/src/icewmbg.cc @@ -273,7 +273,9 @@ static bool hasImageExt(const char* name) { } else if (len >= 6 && name[len - 5] == '.') { const char* ext = &name[len - 4]; - if (0 == strcasecmp(ext, "jpeg")) + if (0 == strcasecmp(ext, "jpeg") || + 0 == strcasecmp(ext, "tiff") || + 0 == strcasecmp(ext, "webp")) return true; } return false;