This commit is contained in:
sxyazi 2025-04-11 13:20:58 +08:00
parent 40c415109f
commit 46de222482
No known key found for this signature in database

View file

@ -60,7 +60,7 @@ function M:preload(job)
"-i", tostring(job.file.url),
"-vframes", 1,
"-q:v", qv,
"-vf", string.format("scale=w=%d:h=%d:force_original_aspect_ratio=decrease:flags=fast_bilinear", rt.preview.max_width , rt.preview.max_height),
"-vf", string.format("scale='min(%d,iw)':'min(%d,ih)':force_original_aspect_ratio=decrease:flags=fast_bilinear", rt.preview.max_width, rt.preview.max_height),
"-f", "image2",
"-y", tostring(cache),
}):status()