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