mirror of
https://github.com/sxyazi/yazi.git
synced 2024-10-05 14:47:19 +03:00
feat: support AVIF image preview (#1249)
This commit is contained in:
parent
987b1d5c49
commit
3c88edbc4d
@ -87,7 +87,7 @@ fetchers = [
|
|||||||
]
|
]
|
||||||
preloaders = [
|
preloaders = [
|
||||||
# Image
|
# Image
|
||||||
{ mime = "image/{heic,jxl,svg+xml}", run = "magick" },
|
{ mime = "image/{avif,heic,jxl,svg+xml}", run = "magick" },
|
||||||
{ mime = "image/*", run = "image" },
|
{ mime = "image/*", run = "image" },
|
||||||
# Video
|
# Video
|
||||||
{ mime = "video/*", run = "video" },
|
{ mime = "video/*", run = "video" },
|
||||||
@ -105,7 +105,7 @@ previewers = [
|
|||||||
# JSON
|
# JSON
|
||||||
{ mime = "application/{json,x-ndjson}", run = "json" },
|
{ mime = "application/{json,x-ndjson}", run = "json" },
|
||||||
# Image
|
# Image
|
||||||
{ mime = "image/{heic,jxl,svg+xml}", run = "magick" },
|
{ mime = "image/{avif,heic,jxl,svg+xml}", run = "magick" },
|
||||||
{ mime = "image/*", run = "image" },
|
{ mime = "image/*", run = "image" },
|
||||||
# Video
|
# Video
|
||||||
{ mime = "video/*", run = "video" },
|
{ mime = "video/*", run = "video" },
|
||||||
|
@ -4,7 +4,7 @@ mod file;
|
|||||||
mod ongoing;
|
mod ongoing;
|
||||||
mod op;
|
mod op;
|
||||||
mod plugin;
|
mod plugin;
|
||||||
mod preload;
|
mod prework;
|
||||||
mod process;
|
mod process;
|
||||||
mod scheduler;
|
mod scheduler;
|
||||||
mod task;
|
mod task;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
use crate::{file::FileOp, plugin::PluginOp, preload::PreworkOp};
|
use crate::{file::FileOp, plugin::PluginOp, prework::PreworkOp};
|
||||||
|
|
||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
pub enum TaskOp {
|
pub enum TaskOp {
|
||||||
|
@ -9,7 +9,7 @@ use yazi_dds::Pump;
|
|||||||
use yazi_shared::{event::Data, fs::{unique_path, Url}, Throttle};
|
use yazi_shared::{event::Data, fs::{unique_path, Url}, Throttle};
|
||||||
|
|
||||||
use super::{Ongoing, TaskProg, TaskStage};
|
use super::{Ongoing, TaskProg, TaskStage};
|
||||||
use crate::{file::{File, FileOpDelete, FileOpLink, FileOpPaste, FileOpTrash}, plugin::{Plugin, PluginOpEntry}, preload::{Prework, PreworkOpFetch, PreworkOpLoad, PreworkOpSize}, process::{Process, ProcessOpBg, ProcessOpBlock, ProcessOpOrphan}, TaskKind, TaskOp, HIGH, LOW, NORMAL};
|
use crate::{file::{File, FileOpDelete, FileOpLink, FileOpPaste, FileOpTrash}, plugin::{Plugin, PluginOpEntry}, prework::{Prework, PreworkOpFetch, PreworkOpLoad, PreworkOpSize}, process::{Process, ProcessOpBg, ProcessOpBlock, ProcessOpOrphan}, TaskKind, TaskOp, HIGH, LOW, NORMAL};
|
||||||
|
|
||||||
pub struct Scheduler {
|
pub struct Scheduler {
|
||||||
pub file: Arc<File>,
|
pub file: Arc<File>,
|
||||||
|
Loading…
Reference in New Issue
Block a user