Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: new image_quality and sixel_fraction options to allow users to configure the image preview quality #576

Merged
merged 1 commit into from
Jan 25, 2024

Conversation

sxyazi
Copy link
Owner

@sxyazi sxyazi commented Jan 25, 2024

Closes #446 - @baitian752
Closes #562 - @AlexKurisu

  • image_quality: Quality on pre-caching images, range 50-90. The larger value, the better image quality, but slower with more CPU consumption, and generates larger cache files that occupy more storage space.
  • sixel_fraction: Sixel is a very old image format that only supports 256 colors. For better image preview, Yazi trains a neural network for each image to find the most representative colors. This value determines the number of samples used during the training, range 10-20. A smaller value produces better results but is also slower.

See the docs here https://yazi-rs.github.io/docs/configuration/yazi#preview

@sxyazi sxyazi merged commit ba0c860 into main Jan 25, 2024
3 checks passed
@sxyazi sxyazi deleted the pr-37585b1c branch January 25, 2024 07:48
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 8, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Image preview quality degrades too heavily VSCode integrated terminal image preview distorted
1 participant