diff --git a/CHANGELOG.md b/CHANGELOG.md index 7c7e2b9..3478448 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Unreleased +# 2.0.6 + +- Allow for upper case extensions + # 2.0.5 - Add update checker diff --git a/src-tauri/src/compress.rs b/src-tauri/src/compress.rs index 7efbf30..063b5b9 100644 --- a/src-tauri/src/compress.rs +++ b/src-tauri/src/compress.rs @@ -490,8 +490,13 @@ fn is_image(path: &Path) -> bool { return false; } let supported_exts = ["png", "jpeg", "jpg", "gif", "webp", "tiff"]; - let ext = path.extension().unwrap_or_default(); - if !supported_exts.contains(&ext.to_str().unwrap()) { + let ext = path + .extension() + .unwrap_or_default() + .to_str() + .unwrap() + .to_lowercase(); + if !supported_exts.contains(&ext.as_str()) { return false; } true diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json index bf3b8d0..bb22ac0 100644 --- a/src-tauri/tauri.conf.json +++ b/src-tauri/tauri.conf.json @@ -2,7 +2,7 @@ "$schema": "https://schema.tauri.app/config/2", "mainBinaryName": "Alic", "productName": "Alic Image Compressor", - "version": "2.0.5", + "version": "2.0.6", "identifier": "io.kbl.alic", "build": { "beforeDevCommand": "bun run dev",