fix: magick plugin not working properly (#1213)

This commit is contained in:
三咲雅 · Misaki Masa 2024-06-25 23:49:54 +08:00 committed by GitHub
parent 9a5b75662a
commit c64530b35b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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