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