fix: magick plugin not working properly

This commit is contained in:
sxyazi 2024-06-25 23:48:53 +08:00
parent 9a5b75662a
commit bd859f3548
No known key found for this signature in database

View file

@ -23,11 +23,11 @@ function M:preload()
local child, code = Command("magick"):args({ local child, code = Command("magick"):args({
"-density", "-density",
"200", "200",
tostring(self.file.url),
"-resize", "-resize",
string.format("%dx%d^", PREVIEW.max_width, PREVIEW.max_height), string.format("%dx%d^", PREVIEW.max_width, PREVIEW.max_height),
"-quality", "-quality",
tostring(PREVIEW.image_quality), tostring(PREVIEW.image_quality),
tostring(self.file.url),
"JPG:" .. tostring(cache), "JPG:" .. tostring(cache),
}):spawn() }):spawn()