diff --git a/yazi-plugin/preset/plugins/magick.lua b/yazi-plugin/preset/plugins/magick.lua index df9b6375..ce3e7e49 100644 --- a/yazi-plugin/preset/plugins/magick.lua +++ b/yazi-plugin/preset/plugins/magick.lua @@ -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.url)) if job.args.flatten then cmd:arg("-flatten") 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) if rt.preview.image_filter == "nearest" then