Expand description
Pure terminal-graphics encoders: Kitty graphics protocol and Sixel.
Decodes nothing and touches no terminal; callers pass a decoded RgbaImage.
Mirrors render/image_render discipline: plain inputs, byte outputs,
exhaustively unit-tested.
Functions§
- encode_
kitty - Encode an image as a Kitty graphics-protocol “transmit and display” command. Format f=32 (RGBA), chunked at 4096 base64 chars with the m=1/m=0 convention.
- encode_
sixel - Encode an image as a Sixel data stream. Quantizes each pixel to the xterm
256-color palette via
rgb_to_256(shared with--truecolordownsampling), then emits palette definitions and run-length-compressed sixel bands.