mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-25 08:41:05 +00:00
refactor: remove unnecessary tostring calls
This commit is contained in:
parent
78cfb1751d
commit
5947c89e9b
2 changed files with 3 additions and 3 deletions
|
|
@ -27,7 +27,7 @@ function M:preload(job)
|
||||||
"-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),
|
PREVIEW.image_quality,
|
||||||
"-auto-orient",
|
"-auto-orient",
|
||||||
"JPG:" .. tostring(cache),
|
"JPG:" .. tostring(cache),
|
||||||
}):status()
|
}):status()
|
||||||
|
|
|
||||||
|
|
@ -30,9 +30,9 @@ function M:preload(job)
|
||||||
"-singlefile",
|
"-singlefile",
|
||||||
"-jpeg",
|
"-jpeg",
|
||||||
"-jpegopt",
|
"-jpegopt",
|
||||||
"quality=" .. tostring(PREVIEW.image_quality),
|
"quality=" .. PREVIEW.image_quality,
|
||||||
"-f",
|
"-f",
|
||||||
tostring(job.skip + 1),
|
job.skip + 1,
|
||||||
tostring(job.file.url),
|
tostring(job.file.url),
|
||||||
})
|
})
|
||||||
:stdout(Command.PIPED)
|
:stdout(Command.PIPED)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue