This commit is contained in:
三咲雅 misaki masa 2025-11-19 13:21:19 +08:00 committed by GitHub
parent aa8d60ad43
commit c60de078e9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -25,11 +25,11 @@ function M:preload(job)
return true
end
local cmd = M.with_limit()
cmd:arg { tostring(job.file.url), "-auto-orient", "-strip" }
local cmd = M.with_limit():arg(tostring(job.file.url))
if job.args.flatten then
cmd:arg("-flatten")
end
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