mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-25 08:41:05 +00:00
Format
This commit is contained in:
parent
aa8d60ad43
commit
c60de078e9
1 changed files with 2 additions and 2 deletions
|
|
@ -25,11 +25,11 @@ function M:preload(job)
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
|
|
||||||
local cmd = M.with_limit()
|
local cmd = M.with_limit():arg(tostring(job.file.url))
|
||||||
cmd:arg { tostring(job.file.url), "-auto-orient", "-strip" }
|
|
||||||
if job.args.flatten then
|
if job.args.flatten then
|
||||||
cmd:arg("-flatten")
|
cmd:arg("-flatten")
|
||||||
end
|
end
|
||||||
|
cmd:arg { "-auto-orient", "-strip" }
|
||||||
|
|
||||||
local size = string.format("%dx%d>", rt.preview.max_width, rt.preview.max_height)
|
local size = string.format("%dx%d>", rt.preview.max_width, rt.preview.max_height)
|
||||||
if rt.preview.image_filter == "nearest" then
|
if rt.preview.image_filter == "nearest" then
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue