Please keep in mind the Emory honor code
ppmcvt manipulates input Portable Pixel Map (PPM) files and outputs a new image based on its given options. Only one option that specifies a transformation can be used at a time.
In the synopsis, options followed by a ‘:’ expect a subsequent parameter.
The options are:
-b
convert input file to a Portable Bitmap (PBM) file. (DEFAULT)
-g:
convert input file to a Portable Gray Map (PGM) file using the specified
max grayscale pixel value [1-65535].
-i:
isolate the specified RGB channel. Valid channels are “red”, “green”, or
“blue”.
-r:
remove the specified RGB channel. Valid channels are “red”, “green”,
or “blue”.
-s
apply a sepia transformation
-m
vertically mirror the first half of the image to the second half
-t:
reduce the input image to a thumbnail based on the given scaling
factor [1-8].
-n:
tile thumbnails of the input image based on the given scaling factor [1-
8].
-o:
write output image to the specified file. Existent output files will be
overwritten.
EXIT STATUS
ppmcvt exits 0 on success and 1 on failure.