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