[](https://crates.io/crates/cursive-image)
[](https://docs.rs/cursive-image)
Cursive Image
=============
An image view for the [Cursive](https://github.com/gyscos/cursive) TUI library.
It will, of course, only work on terminals that support graphics. Relying on the [viuer](https://github.com/atanunq/viuer) library, it supports the [Kitty](https://sw.kovidgoyal.net/kitty/graphics-protocol.html), [iTerm](https://iterm2.com/documentation-images.html), and [Sixel](https://github.com/saitoha/libsixel) (with the `sixel` feature) terminal graphic protocols.
The view supports fit or scale sizing modes (fit is the default), image alignment, and scrolling.
Check out the [examples](https://codeberg.org/tliron/cursive-image/src/branch/main/examples).
License
-------
Like much of the Rust ecosystem, licensed under your choice of either of
* [Apache License, Version 2.0](https://codeberg.org/tliron/cursive-image/src/branch/main/LICENSE-APACHE)
* [MIT license](https://codeberg.org/tliron/cursive-image/src/branch/main/LICENSE-MIT)
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.
All code and documentation was written by humans. We do not accept "AI"-generated contributions.