pnmtorle

Convert a PNM file to an Utah Raster Tools RLE image file. More information: https://netpbm.sourceforge.net/doc/pnmtorle.html.

pnmtorle path/to/input.pnm > path/to/output.rle

pnmtorle -verbose path/to/input.pnm > path/to/output.rle

pnmtorle -alpha path/to/input.pnm > path/to/output.rle