#! /bin/sh

# Uses xbm format, which is much smaller than xpm but also less cute.

PATH="/opt/lib/xfax:/opt/bin"

# For high res screen:
#efix -i fax -o pbm -s1.3x1.3 -p28x42cm $1 | pbmreduce 4 | pbmtoxbm > $2

# For medium res screen:
efix -i fax -o pbm -s1.2x1.2 -p25.1x35.0cm $1 |  pbmreduce 4 | pbmtoxbm > $2

# For low res screen:
#efix -i fax -o pbm -s1x1 -p20.6x29.8cm $1 |  pbmreduce 4 | pbmtoxbm > $2

