Skip to content

improvement to yazi's image preview downscaling#3797

Open
caikn wants to merge 9 commits intosxyazi:mainfrom
caikn:feat_my_dev
Open

improvement to yazi's image preview downscaling#3797
caikn wants to merge 9 commits intosxyazi:mainfrom
caikn:feat_my_dev

Conversation

@caikn
Copy link

@caikn caikn commented Mar 21, 2026

Which issue does this PR resolve?

An improvement to yazi's image preview downscaling so that thumbnails displayed in the terminal preview pane are visibly sharper.

Why it's blurry: The image crate's resize implementation, while functional, uses a simpler convolution approach compared to dedicated image processing libraries (e.g., fast_image_resize). For downscaling large images to small preview sizes, the quality difference is noticeable — especially for fine detail and text in images.

Resolves #3796

Rationale of this PR

Replace both resize call with fast_image_resize, add dependency, map all config filter strings

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

improve the image preview quality

1 participant