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