refactor: remove unnecessary tostring calls

This commit is contained in:
sxyazi 2024-12-07 20:03:30 +08:00
parent 78cfb1751d
commit 5947c89e9b
No known key found for this signature in database
2 changed files with 3 additions and 3 deletions

View file

@ -27,7 +27,7 @@ function M:preload(job)
"-resize",
string.format("%dx%d^", PREVIEW.max_width, PREVIEW.max_height),
"-quality",
tostring(PREVIEW.image_quality),
PREVIEW.image_quality,
"-auto-orient",
"JPG:" .. tostring(cache),
}):status()

View file

@ -30,9 +30,9 @@ function M:preload(job)
"-singlefile",
"-jpeg",
"-jpegopt",
"quality=" .. tostring(PREVIEW.image_quality),
"quality=" .. PREVIEW.image_quality,
"-f",
tostring(job.skip + 1),
job.skip + 1,
tostring(job.file.url),
})
:stdout(Command.PIPED)