about summary refs log tree commit diff
path: root/test/jbig-roundtrip.test
blob: 11cd17781ac0997b3547e8f29a4f874d9975cd4d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
#! /bin/sh
# This script tests: pnmtojbig jbigtopnm
# Also requires: pamchannel pamtopnm

# Test 1.  Should print 281226646 481
pnmtojbig maze.pbm | jbigtopnm | cksum

# Test 2.  Should print 1571496937 33838
pamchannel -infile=testimg.ppm -tupletype="GRAYSCALE" 0 | pamtopnm | \
  pnmtojbig | jbigtopnm | cksum