gaesa 2024-12-06 14:20:50 +00:00
parent adb1426539
commit f07e99d1b3
No known key found for this signature in database

View file

@ -56,7 +56,7 @@ function M:preload(job)
"-i", tostring(job.file.url),
"-vframes", 1,
"-q:v", qv,
"-vf", string.format("scale=%d:-2:flags=fast_bilinear", PREVIEW.max_width),
"-vf", string.format("scale='min(%d,iw)':-2:flags=fast_bilinear", PREVIEW.max_width),
"-f", "image2",
"-y", tostring(cache),
}):status()