diff --git a/yazi-plugin/preset/plugins/video.lua b/yazi-plugin/preset/plugins/video.lua index 832e1476..5d022ecd 100644 --- a/yazi-plugin/preset/plugins/video.lua +++ b/yazi-plugin/preset/plugins/video.lua @@ -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()