From c60de078e9a1e0eb517567992ba1a6032607e446 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=89=E5=92=B2=E9=9B=85=20misaki=20masa?= Date: Wed, 19 Nov 2025 13:21:19 +0800 Subject: [PATCH] Format --- yazi-plugin/preset/plugins/magick.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/yazi-plugin/preset/plugins/magick.lua b/yazi-plugin/preset/plugins/magick.lua index b2db1de3..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() - 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