mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-21 23:01:05 +00:00
fix: magick preview of multiframe files (#4024)
Co-authored-by: 三咲雅 misaki masa <sxyazi@gmail.com>
This commit is contained in:
parent
52640fcece
commit
60d94608cb
1 changed files with 4 additions and 2 deletions
|
|
@ -25,9 +25,11 @@ function M:preload(job)
|
|||
return true
|
||||
end
|
||||
|
||||
local cmd = M.with_limit():arg(tostring(job.file.path))
|
||||
local cmd = M.with_limit():arg { "-define", "filename:literal=true" }
|
||||
if job.args.flatten then
|
||||
cmd:arg("-flatten")
|
||||
cmd:arg { tostring(job.file.path), "-flatten" }
|
||||
else
|
||||
cmd:arg { "-define", "image:frames=0", tostring(job.file.path) }
|
||||
end
|
||||
cmd:arg { "-auto-orient", "-strip" }
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue