benjajaja / ratatui-image

Ratatui widget for rendering image graphics in terminals that support it
https://crates.io/crates/ratatui-image
MIT License
96 stars 14 forks source link

Support transparent background of images #15

Closed Ktrod closed 7 months ago

Ktrod commented 7 months ago

Support RGBA for image backgrounds instead of just RGB.

benjajaja commented 7 months ago

Ratatui works in "immediate mode". The area covered by the image cannot be cleared, it must be set to be skipped instead, so that nothing draws over the image in the same render pass. Thus, if we would allow for transparency, artifacts of some previous render would be visible.

image

benjajaja commented 7 months ago

Also, icy_sixel does not seem to support transparency at the moment.