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:
parent
edca40058b
commit
293350092c
6 changed files with 338 additions and 40 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue