mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-25 08:41:05 +00:00
fix: magick plugin not working properly (#1213)
This commit is contained in:
parent
9a5b75662a
commit
c64530b35b
1 changed files with 1 additions and 1 deletions
|
|
@ -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()
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue