fix: magick preview of multiframe files with special chars in names

This commit is contained in:
Omenabaka 2026-06-08 23:16:30 +03:00
parent c93d2ae986
commit 6aadb3ff38

View file

@ -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.path))
if job.args.flatten then
cmd:arg(tostring(job.file.path)):arg("-flatten")
cmd:arg("-flatten")
else
cmd:arg(tostring(job.file.path) .. "[0]")
cmd:arg { "-delete", "1--1" }
end
cmd:arg { "-auto-orient", "-strip" }