mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-25 08:41:05 +00:00
fix: magick preview of multiframe files
This commit is contained in:
parent
ea7fa2127c
commit
c93d2ae986
1 changed files with 4 additions and 2 deletions
|
|
@ -25,9 +25,11 @@ function M:preload(job)
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
|
|
||||||
local cmd = M.with_limit():arg(tostring(job.file.path))
|
local cmd = M.with_limit()
|
||||||
if job.args.flatten then
|
if job.args.flatten then
|
||||||
cmd:arg("-flatten")
|
cmd:arg(tostring(job.file.path)):arg("-flatten")
|
||||||
|
else
|
||||||
|
cmd:arg(tostring(job.file.path) .. "[0]")
|
||||||
end
|
end
|
||||||
cmd:arg { "-auto-orient", "-strip" }
|
cmd:arg { "-auto-orient", "-strip" }
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue