#! /bin/bash
# This script tests: pamfile
# Also requires: pamchannel pamtopnm


pamfile testimg.ppm
pamfile testgrid.pbm
pamchannel -infile=testimg.ppm -tupletype="GRAYSCALE" 0 | pamtopnm | pamfile
pamchannel -tupletype="GRAYSCALE" -infile=testimg.ppm 0 | pamfile

cat testgrid.pbm testgrid.pbm testgrid.pbm | pamfile -count
cat testgrid.pbm testgrid.pbm testgrid.pbm | pamfile -allimages

pamfile -size testimg.ppm
pamfile -machine testimg.ppm
cat testgrid.pbm testimg.ppm testgrid.pbm | pamfile -machine
