mirror of
https://github.com/sxyazi/yazi.git
synced 2026-05-13 08:16:40 +00:00
fix: -flatten flag should come after the input file in preset ImageMagick previewer (#3339)
Co-authored-by: 三咲雅 misaki masa <sxyazi@gmail.com>
This commit is contained in:
parent
f9abe886cc
commit
9cd742811a
1 changed files with 2 additions and 2 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.url))
|
||||
if job.args.flatten then
|
||||
cmd:arg("-flatten")
|
||||
end
|
||||
cmd:arg { tostring(job.file.url), "-auto-orient", "-strip" }
|
||||
cmd:arg { "-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
Add a link
Reference in a new issue