Crates.io | iterm2img |
lib.rs | iterm2img |
version | 0.1.0 |
source | src |
created_at | 2023-05-07 08:38:52.665926 |
updated_at | 2023-05-07 08:38:52.665926 |
description | Rust library for iTerm2 Inline Images Protocol |
homepage | https://github.com/lusingander/iterm2img |
repository | https://github.com/lusingander/iterm2img |
max_upload_size | |
id | 859019 |
size | 118,511 |
Rust library for iTerm2 Inline Images Protocol
let encoded = iterm2img::from_bytes(bytes)
.width(5)
.inline(true)
.build();
println("{}", encoded);
See examples/main.rs for full code.
Running this on iTerm2 gives the following:
MIT