blob: 1b84101b9551e04da3312f00c8b7a5a74deb6ca6 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#! /bin/sh
pambrightenOpts=''
normalize='no'
for opt in "$@"; do
case $opt in
-normalize|-normaliz|-normali|-normal|-norma|-norm|-nor|-no|-n)
normalize='yes'
;;
*)
pambrightenOpts="$pambrightenOpts $opt"
;;
esac
done
if test "$normalize" = 'yes'; then
pnmnorm -bsingle -wsingle -keephues | \
pambrighten $pambrightenOpts | ppmtoppm
else
pambrighten $pambrightenOpts | ppmtoppm
fi
|