We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 40c4151 commit 46de222Copy full SHA for 46de222
yazi-plugin/preset/plugins/video.lua
@@ -60,7 +60,7 @@ function M:preload(job)
60
"-i", tostring(job.file.url),
61
"-vframes", 1,
62
"-q:v", qv,
63
- "-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),
64
"-f", "image2",
65
"-y", tostring(cache),
66
}):status()
0 commit comments