Options (3)
booleanConvert a raw RGB stream in which the pixels come bottom-first instead of top-first to a PPM image
Example:
rawtoppm {{width}} {{height}} {{path/to/image.raw}} | pamflip {{[-tb|-topbottom]}} > {{path/to/output.ppm}}-hbooleanIgnore the first n bytes of the specified file
Example:
rawtoppm {{width}} {{height}} {{[-h|-headerskip]}} {{n}} {{path/to/image.raw}} > {{path/to/output.ppm}}booleanIgnore the last m bytes of each row in the specified file
Example:
rawtoppm {{width}} {{height}} {{[-ro|-rowskip]}} {{m}} {{path/to/image.raw}} > {{path/to/output.ppm}}Examples (5)
Convert a raw RGB stream to a PPM image
rawtoppm width height path/to/image.raw > path/to/output.ppmConvert a raw RGB stream in which the pixels come bottom-first instead of top-first to a PPM image
Ignore the first n bytes of the specified file
Ignore the last m bytes of each row in the specified file
Specify the order of color components for each pixel
rawtoppm width height -rgb|rbg|grb|gbr|brg|bgr path/to/image.raw > path/to/output.ppmmade by @shridhargupta | data from tldr-pages