mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-22 23:31:05 +00:00
Simpliy a little bit
This commit is contained in:
parent
7afc3effa3
commit
4a226189ab
1 changed files with 3 additions and 5 deletions
|
|
@ -25,13 +25,11 @@ function M:preload(job)
|
|||
return true
|
||||
end
|
||||
|
||||
local cmd = M.with_limit()
|
||||
cmd:arg { "-define", "filename:literal=true" }
|
||||
local path = tostring(job.file.path)
|
||||
local cmd = M.with_limit():arg({ "-define", "filename:literal=true" })
|
||||
if job.args.flatten then
|
||||
cmd:arg { path, "-flatten" }
|
||||
cmd:arg { tostring(job.file.path), "-flatten" }
|
||||
else
|
||||
cmd:arg { "-define", "image:frames=0", path }
|
||||
cmd:arg { "-define", "image:frames=0", tostring(job.file.path) }
|
||||
end
|
||||
cmd:arg { "-auto-orient", "-strip" }
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue