thumbnail: Support jxl and plumbing for future formats. (#1058)

* add plumbing for additional thumbnailers

* remove bad logging and fmt

* fix bad logging message

* add decoding ram limits

* add configuration for thumbs

* cleanups

* fix rebase fails
This commit is contained in:
Mitchel Stewart 2025-07-30 17:45:53 -04:00 committed by GitHub
parent edca40058b
commit 293350092c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 338 additions and 40 deletions

View file

@ -1002,6 +1002,7 @@ impl App {
let mut tab = Tab::new(
location.clone(),
self.config.tab,
self.config.thumb_cfg,
Some(&self.state.sort_names),
window_id,
);
@ -6208,7 +6209,7 @@ pub(crate) mod test_utils {
use tempfile::{tempdir, TempDir};
use crate::{
config::{IconSizes, TabConfig},
config::{IconSizes, TabConfig, ThumbCfg},
tab::Item,
};
@ -6372,7 +6373,7 @@ pub(crate) mod test_utils {
// New tab with items
let location = Location::Path(path.to_owned());
let (parent_item_opt, items) = location.scan(IconSizes::default());
let mut tab = Tab::new(location, TabConfig::default(), None);
let mut tab = Tab::new(location, TabConfig::default(), ThumbCfg::default(), None);
tab.parent_item_opt = parent_item_opt;
tab.set_items(items);