ppm2grey(1)

NAME

ppm2grey - convert a color image to greyscale

SYNOPSIS

ppm2grey [<opts>] [infile] [<opts>] [outfile] [<opts>]

DESCRIPTION

ppm2grey reads a color image infile and converts it to greyscale. The result is written to a second file outfile.

If no outfile name or a - is specified the result will be written to the standard output. If no infile name or a - is specified the data will be read from the standard input.

The program tries to guess the file format from the file name. If this is not possible, pgm will be assumed.

OPTIONS

-a  Calculate the greyscale representation using the average rather than the (usually better-looking) y-component from the image's yuv representation.

-r  Force raw format output.

-p  Force pgm format output.

NOTES

The ppm2grey utility is part of the Wavelet class library package. The version number refers to the whole package rather than to the utility.

Apart from PGM, ppm2grey also accepts JPEG and may, if enabled, be able to read PFI files.

BUGS

None known yet.

COPYRIGHT
Copyright (C) 2001-2003 Herbert

ppm2grey is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version.

ppm2grey is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

AUTHOR
Herbert Martin Dietze <herbert@spamcop.net>