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

@ -36,7 +36,7 @@ use std::{
use crate::{
app::{Action, ContextPage, Message as AppMessage, PreviewItem, PreviewKind},
config::{Config, DialogConfig, Favorite, TimeConfig, TIME_CONFIG_ID},
config::{Config, DialogConfig, Favorite, TabConfig, ThumbCfg, TimeConfig, TIME_CONFIG_ID},
fl, home_dir,
key_bind::key_binds,
localize::LANGUAGE_SORTER,
@ -945,7 +945,13 @@ impl Application for App {
},
});
let mut tab = Tab::new(location, flags.config.dialog_tab(), None, None);
let mut tab = Tab::new(
location,
flags.config.dialog_tab(),
ThumbCfg::default(),
None,
None,
);
tab.mode = tab::Mode::Dialog(flags.kind.clone());
tab.sort_name = tab::HeadingOptions::Modified;
tab.sort_direction = false;