From bd859f35486b257d81653d63404bfef5b7cc8d87 Mon Sep 17 00:00:00 2001 From: sxyazi Date: Tue, 25 Jun 2024 23:48:53 +0800 Subject: [PATCH] fix: `magick` plugin not working properly --- 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()