Skip to main content

encode_sixel

Function encode_sixel 

Source
pub fn encode_sixel(img: &RgbaImage) -> Vec<u8> 
Expand description

Encode an image as a Sixel data stream. Quantizes each pixel to the xterm 256-color palette via rgb_to_256 (shared with --truecolor downsampling), then emits palette definitions and run-length-compressed sixel bands.