mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-25 08:41:05 +00:00
Use -resize instead of -sample for SVG preview
This commit is contained in:
parent
4e5e827412
commit
6a2b8e9299
1 changed files with 1 additions and 1 deletions
|
|
@ -28,7 +28,7 @@ function M:preload(job)
|
|||
local cmd = require("magick").with_env():args {
|
||||
"-density", 200,
|
||||
tostring(job.file.url), "-strip",
|
||||
"-sample", string.format("%dx%d^", rt.preview.max_width, rt.preview.max_height),
|
||||
"-resize", string.format("%dx%d^", rt.preview.max_width, rt.preview.max_height),
|
||||
"-quality", rt.preview.image_quality,
|
||||
string.format("JPG:%s", cache),
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue