about summary refs log tree commit diff
path: root/test/pad-crop-roundtrip.test
blob: 75979901cc014fec89ed4feb9b71d286e48fa8c7 (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: pnmcrop pnmmargin pnmpad
# Also requires:

pnmmargin -white 10 testimg.ppm | \
  pnmcrop | cksum

pnmpad -white -left 10 -top 10 testimg.ppm | \
  pnmpad -white -right 10 -bottom 10 | \
  pnmcrop -right -bottom | pnmcrop -left -top | cksum

pnmmargin -white 10 testgrid.pbm | \
  pnmcrop | cksum

pnmpad -white -left 10 -top 10 testgrid.pbm | \
  pnmpad -white -right 10 -bottom 10 | \
  pnmcrop -left -right | pnmcrop -top -bottom | cksum