-
Notifications
You must be signed in to change notification settings - Fork 386
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
Honor png/webp alpha channel on image preview #1498
Comments
Hi, it's already on the feature request list, but I haven't had the time to implement it yet. It's not a high priority, but I'd be happy to accept any constructive patches. Would you like to give it a try? I can offer some guidance. |
haven't done much rust but I am interested, sure!, if you point me on where to make the changes, i can try it this weekend |
The image preview is done through the yazi/yazi-plugin/preset/plugins/image.lua Line 10 in 0f106b5
yazi/yazi-plugin/preset/plugins/image.lua Line 22 in 0f106b5
And the source of them at: yazi/yazi-plugin/src/utils/image.rs Lines 9 to 25 in 0f106b5
I think this is a great place to start. |
did you get a chance to check my implementation @sxyazi ? fine if you haven't had time, I ask just in case you missed this |
Thanks, it looks good to me overall. I'll need some more time to test it further - we need to make sure that all 4 image backends (Sixel, Kitty, IIP, and Ueberzug) handle transparent backgrounds correctly. |
Done in #1556, thanks for contributing this feature! @diegodorado |
I'm going to lock this issue because it has been closed for 30 days. ⏳ |
yazi --debug
outputPlease describe the problem you're trying to solve
THe image previewer is not displaying the image with transparent background. I know my terminal would be capable of doing it because
lsix
works fine for this.Would you be willing to contribute this feature?
Describe the solution you'd like
Look at
lsix
implementation to see how they do it.Additional context
No response
Validations
The text was updated successfully, but these errors were encountered: