LinuxCommandLibrary

ppmtosixel

Convert a PPM image to DEC sixel format.

TLDR

Convert a PPM image to DEC sixel format

$ ppmtosixel [path/to/file.ppm] > [path/to/file.sixel]
copy


Produce an uncompressed SIXEL file that is much slower to print
$ ppmtosixel -raw [path/to/file.ppm] > [path/to/file.sixel]
copy


Add a left margin of 1.5 inches
$ ppmtosixel -margin [path/to/file.ppm] > [path/to/file.sixel]
copy


Encode control codes in a more portable (although less space-efficient) way
$ ppmtosixel -7bit [path/to/file.ppm] > [path/to/file.sixel]
copy

Copied to clipboard