Closed diegodorado closed 2 months ago
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 image
previewer, which relies on two APIs: ya.image_show()
and ya.image_precache()
:
And the source of them at:
I think this is a great place to start.
@sxyazi , I got this working, would you give it a review?
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 https://github.com/sxyazi/yazi/pull/1556, thanks for contributing this feature! @diegodorado
I'm going to lock this issue because it has been closed for 30 days. ⏳ This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
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