Skip to main content

encode_kitty

Function encode_kitty 

Source
pub fn encode_kitty(id: u32, data: &[u8], _mime_type: &str) -> String
Expand description

Encode image data for the Kitty graphics protocol.

The data is base64-encoded and chunked with m=1 (more data follows) delimiters. Each chunk is up to 4096 bytes of base64 text.