https://github.com/lusingander/iterm2img
Rust library for iTerm2 Inline Images Protocol
https://github.com/lusingander/iterm2img
iterm2 tui
Last synced: 5 months ago
JSON representation
Rust library for iTerm2 Inline Images Protocol
- Host: GitHub
- URL: https://github.com/lusingander/iterm2img
- Owner: lusingander
- License: mit
- Created: 2023-05-07T08:34:13.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2023-05-07T08:49:35.000Z (over 2 years ago)
- Last Synced: 2025-08-19T13:02:40.096Z (5 months ago)
- Topics: iterm2, tui
- Language: Rust
- Homepage: https://crates.io/crates/iterm2img
- Size: 104 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# iterm2img
[](https://crates.io/crates/iterm2img)
[](https://docs.rs/iterm2img)
Rust library for iTerm2 [Inline Images Protocol](https://iterm2.com/documentation-images.html)
## Usage
```rust
let encoded = iterm2img::from_bytes(bytes)
.width(5)
.inline(true)
.build();
println("{}", encoded);
```
See [examples/main.rs](./examples/main.rs) for full code.
Running this on iTerm2 gives the following:

## License
MIT