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", "-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()

View file

@ -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)