summaryrefslogtreecommitdiffstats
path: root/src/config/input.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/config/input.rs')
-rw-r--r--src/config/input.rs6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/config/input.rs b/src/config/input.rs
index 3997929..b1cf6c3 100644
--- a/src/config/input.rs
+++ b/src/config/input.rs
@@ -144,7 +144,11 @@ fn resolve_path(file: &str) -> Option<PathBuf> {
fn is_image_ext(path: &Path) -> bool {
path.extension()
- .map(|v| IMAGE_EXTS.iter().any(|ext| *ext == v.to_string_lossy()))
+ .map(|v| {
+ IMAGE_EXTS
+ .iter()
+ .any(|ext| *ext == v.to_string_lossy().to_lowercase())
+ })
.unwrap_or_default()
}