home *** CD-ROM | disk | FTP | other *** search
/ rtsi.com / 2014.01.www.rtsi.com.tar / www.rtsi.com / OS9 / OSK / NETWORK / netpbm_docs.lzh / NETPBM / DOCS / ppmtopgm.1 < prev    next >
Text File  |  1996-11-18  |  1KB  |  51 lines

  1. .TH ppmtopgm 1 "23 December 1988"
  2. .IX ppmtopgm
  3. .SH NAME
  4. ppmtopgm - convert a portable pixmap into a portable graymap
  5. .SH SYNOPSIS
  6. .B ppmtopgm
  7. .RI [ ppmfile ]
  8. .SH DESCRIPTION
  9. Reads a portable pixmap as input.
  10. Produces a portable graymap as output.
  11. The quantization formula used is .299 r + .587 g + .114 b.
  12. .PP
  13. Note that although there is a
  14. .I pgmtoppm
  15. program, it is not necessary
  16. for simple conversions from
  17. .I pgm
  18. to
  19. .IR ppm ,
  20. because any ppm program can
  21. read
  22. .I pgm
  23. (and
  24. .I pbm
  25. ) files automagically.
  26. .I pgmtoppm
  27. is for colorizing a
  28. .I pgm
  29. file.  Also, see
  30. .I ppmtorgb3
  31. .IX ppmtorgb3
  32. for a different way of converting color to gray.
  33. .SH QUOTE
  34. .nf
  35. Cold-hearted orb that rules the night
  36. Removes the colors from our sight
  37. Red is gray, and yellow white
  38. But we decide which is right
  39. And which is a quantization error.
  40. .fi
  41. .SH "SEE ALSO"
  42. pgmtoppm(1), ppmtorgb3(1), rgb3toppm(1), ppm(5), pgm(5)
  43. .SH AUTHOR
  44. Copyright (C) 1989 by Jef Poskanzer.
  45. .\" Permission to use, copy, modify, and distribute this software and its
  46. .\" documentation for any purpose and without fee is hereby granted, provided
  47. .\" that the above copyright notice appear in all copies and that both that
  48. .\" copyright notice and this permission notice appear in supporting
  49. .\" documentation.  This software is provided "as is" without express or
  50. .\" implied warranty.
  51.