From c64530b35b285e72ef6bc7c0d5737d7d7b13d90e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=89=E5=92=B2=E9=9B=85=20=C2=B7=20Misaki=20Masa?= Date: Tue, 25 Jun 2024 23:49:54 +0800 Subject: [PATCH] fix: `magick` plugin not working properly (#1213) --- yazi-plugin/preset/plugins/magick.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yazi-plugin/preset/plugins/magick.lua b/yazi-plugin/preset/plugins/magick.lua index 36e278f8..75ba7a38 100644 --- a/yazi-plugin/preset/plugins/magick.lua +++ b/yazi-plugin/preset/plugins/magick.lua @@ -23,11 +23,11 @@ function M:preload() local child, code = Command("magick"):args({ "-density", "200", + tostring(self.file.url), "-resize", string.format("%dx%d^", PREVIEW.max_width, PREVIEW.max_height), "-quality", tostring(PREVIEW.image_quality), - tostring(self.file.url), "JPG:" .. tostring(cache), }):spawn()