mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-25 08:41:05 +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
|
return true
|
||||||
end
|
end
|
||||||
|
|
||||||
local cmd = M.with_limit()
|
local cmd = M.with_limit():arg(tostring(job.file.url))
|
||||||
if job.args.flatten then
|
if job.args.flatten then
|
||||||
cmd:arg("-flatten")
|
cmd:arg("-flatten")
|
||||||
end
|
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)
|
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