diff options
| author | Osmium Sorcerer <os@sof.beauty> | 2026-03-22 17:51:18 +0000 |
|---|---|---|
| committer | Osmium Sorcerer <os@sof.beauty> | 2026-03-29 22:22:25 +0000 |
| commit | 06f34c776972542222623ca4f91880de97993fbf (patch) | |
| tree | a012689d6a9a9c28fe490a2afafe9866d156c920 | |
| parent | 5541e36f81d5d565f7a205ad1f7db2b2463ff553 (diff) | |
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.
| -rw-r--r-- | src/text_file_functions.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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(); |
