From 06f34c776972542222623ca4f91880de97993fbf Mon Sep 17 00:00:00 2001 From: Osmium Sorcerer Date: Sun, 22 Mar 2026 17:51:18 +0000 Subject: Change image extensions WebP was being incorrectly labeled as not static. While it does support animation, it's a static image format by itself. As a result, WebP icons didn't work, for example. Only label APNG and GIF as explicitly not static, and add AVIF and WebP to defaults. --- src/text_file_functions.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/text_file_functions.cpp b/src/text_file_functions.cpp index 91660c9..7d80b4e 100644 --- a/src/text_file_functions.cpp +++ b/src/text_file_functions.cpp @@ -383,9 +383,9 @@ QString AOApplication::get_image_suffix(VPath path_to_check, bool static_image) QStringList suffixes{}; if (!static_image) { - suffixes.append({".webp", ".apng", ".gif"}); + suffixes.append({".apng", ".gif"}); } - suffixes.append(".png"); + suffixes.append({".avif", ".webp", ".png"}); // Check if we were provided a direct filepath with a suffix already QString path = path_to_check.toQString(); -- cgit