From 67884d28000c48b9d0e5594b564ec6c3ef1afb97 Mon Sep 17 00:00:00 2001 From: Jeremy Soller Date: Wed, 30 Jul 2025 15:52:21 -0600 Subject: [PATCH] Do not apply image size limit to all files --- src/tab.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/tab.rs b/src/tab.rs index a34636b..3da1c31 100644 --- a/src/tab.rs +++ b/src/tab.rs @@ -1768,11 +1768,8 @@ impl ItemThumbnail { }; let mut tried_supported_file = false; - if !check_size("image", max_size_mb * 1000 * 1000) { - return ItemThumbnail::NotImage; - } // First try built-in image thumbnailer - if mime.type_() == mime::IMAGE { + if mime.type_() == mime::IMAGE && check_size("image", max_size_mb * 1000 * 1000) { tried_supported_file = true; let dyn_img: Option = match mime.subtype().as_str() { "jxl" => match File::open(path) {