mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-25 08:41:05 +00:00
fix(pdf): respect PREVIEW.image_quality
See also: https://man.archlinux.org/man/pdftoppm.1#quality
This commit is contained in:
parent
3bd625a8af
commit
78cfb1751d
1 changed files with 9 additions and 1 deletions
|
|
@ -26,7 +26,15 @@ function M:preload(job)
|
|||
end
|
||||
|
||||
local output = Command("pdftoppm")
|
||||
:args({ "-singlefile", "-jpeg", "-jpegopt", "quality=75", "-f", tostring(job.skip + 1), tostring(job.file.url) })
|
||||
:args({
|
||||
"-singlefile",
|
||||
"-jpeg",
|
||||
"-jpegopt",
|
||||
"quality=" .. tostring(PREVIEW.image_quality),
|
||||
"-f",
|
||||
tostring(job.skip + 1),
|
||||
tostring(job.file.url),
|
||||
})
|
||||
:stdout(Command.PIPED)
|
||||
:stderr(Command.PIPED)
|
||||
:output()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue