fix: move -flatten after the input file in magick.lua

This commit is contained in:
walldmtd 2025-11-18 22:32:00 -06:00 committed by GitHub
parent f9abe886cc
commit aa8d60ad43
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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