mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-25 08:41:05 +00:00
fix: avoid upscaling for the video previewer (#2007)
Co-authored-by: sxyazi <sxyazi@gmail.com>
This commit is contained in:
parent
6308873f0b
commit
de93e6208d
2 changed files with 2 additions and 2 deletions
|
|
@ -1,7 +1,7 @@
|
||||||
# Default Configuration
|
# Default Configuration
|
||||||
|
|
||||||
> [!IMPORTANT]
|
> [!IMPORTANT]
|
||||||
> If you're using a stable release of Yazi instead of the latest nightly build, make sure you're checking these files from [the shipped tag][shipped], not the latest main branch.
|
> If you're using a stable release of Yazi instead of the latest nightly build, make sure you're checking these files from [the `shipped` tag][shipped], not the latest main branch.
|
||||||
|
|
||||||
This directory contains the default configuration files for Yazi:
|
This directory contains the default configuration files for Yazi:
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -56,7 +56,7 @@ function M:preload(job)
|
||||||
"-i", tostring(job.file.url),
|
"-i", tostring(job.file.url),
|
||||||
"-vframes", 1,
|
"-vframes", 1,
|
||||||
"-q:v", qv,
|
"-q:v", qv,
|
||||||
"-vf", string.format("scale=%d:-2:flags=fast_bilinear", PREVIEW.max_width),
|
"-vf", string.format("scale=-1:'min(%d,ih)':flags=fast_bilinear", PREVIEW.max_height),
|
||||||
"-f", "image2",
|
"-f", "image2",
|
||||||
"-y", tostring(cache),
|
"-y", tostring(cache),
|
||||||
}):status()
|
}):status()
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue