Skip to content

improvement to yazi's image preview downscaling#3797

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

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

Conversation

@caikn
Copy link
Copy Markdown

@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

@sxyazi
Copy link
Copy Markdown
Owner

sxyazi commented Apr 20, 2026

Closing with #3796

@sxyazi sxyazi closed this Apr 20, 2026
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

2 participants