blob: 8b911740748a65ae262c95e7c23565187feac3d2 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#! /bin/bash
# This script tests: giftopnm pamtogif pnmquant
# Also requires:
# Should print 0
colors=15 # any value between 2 - 256 works
tmpdir=${tmpdir:-/tmp}
quant_ppm=${tmpdir}/quant.ppm
pnmquant ${colors} testimg.ppm > ${quant_ppm} &&
pamtogif ${quant_ppm} | giftopnm | \
cmp -s - ${quant_ppm} > /dev/null
echo $?
rm ${quant_ppm}
|