LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

ppmtoicr

Convert PPM to NCSA ICR format

TLDR

Convert PPM to NCSA ICR format
$ ppmtoicr [input.ppm] > [output.icr]
copy
Convert with a custom window name
$ ppmtoicr -windowname [myimage] [input.ppm] > [output.icr]
copy
Convert with pixel expansion factor
$ ppmtoicr -expand [2] [input.ppm] > [output.icr]
copy
Read from stdin via pipe
$ cat [input.ppm] | ppmtoicr > [output.icr]
copy

SYNOPSIS

ppmtoicr [options] [file]

DESCRIPTION

ppmtoicr reads a PPM image and converts it to NCSA ICR (Image Capture Raster) format. The ICR format was used by NCSA Telnet to display raster images in an X11 window on a remote display. The output is written to standard output. Part of the Netpbm toolkit.If no input file is specified, the image is read from standard input.

PARAMETERS

-windowname name

Set the name of the window in the ICR output. Default is "untitled".
-expand n
Expand each pixel by factor n. Each pixel becomes an n x n block of pixels. Default is 1 (no expansion).
-rle
Use run-length encoding compression in the output.

SEE ALSO

ppmtoxpm(1), pnmtops(1)

Copied to clipboard
Kai