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({
"-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()