mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-25 08:41:05 +00:00
perf: refactor magick arguments
This commit is contained in:
parent
aedfe766c5
commit
8efa77eb07
1 changed files with 4 additions and 5 deletions
|
|
@ -25,15 +25,14 @@ function M:preload(job)
|
|||
end
|
||||
|
||||
local cmd = Command("magick"):args {
|
||||
"-density",
|
||||
200,
|
||||
tostring(job.file.url),
|
||||
"-auto-orient",
|
||||
"-strip",
|
||||
"-sample",
|
||||
string.format("%dx", rt.preview.max_width),
|
||||
"-flatten",
|
||||
"-resize",
|
||||
string.format("%dx%d^", rt.preview.max_width, rt.preview.max_height),
|
||||
"-quality",
|
||||
rt.preview.image_quality,
|
||||
"-auto-orient",
|
||||
"JPG:" .. tostring(cache),
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue