ppmをpgmに変換する
ppmtopgm [ppmfile]
ppmファイルを入力して、pgmを出力する。
出力は標準出力になる。
変換の式は
0.299 * r + 0.587 * g + 0.114 * b.
である。
なおpgmをppmに変換するコマンドは存在するが普通はその必要はない。
なぜならたいていのppmを読むコマンドはpgmも読み込むことができるからである。
Cold-hearted orb that rules the night Removes the colors from our sight Red is gray, and yellow white But we decide which is right And which is a quantization error.
Copyright (C) 1989 by Jef Poskanzer.