blob: e40276e52125deb48d08354c8ddf6f2bd17b8998 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#! /bin/bash
# This script tests: pnmquantall
# Also requires: ppmtorgb3 pgmhist
PATH=/src/netpbm/pbin/:/usr/bin
ppmtorgb3 testimg.ppm
pnmquantall 20 testimg.red testimg.grn testimg.blu
for i in testimg.red testimg.grn testimg.blu
do
cksum $i
done
# Should print 1
pnmcat testimg.red testimg.grn testimg.blu -tb | \
pgmhist -m | awk '$2>0 {s++}; END { print s<=20 }'
|