#!/bin/bash
# usage:
#   tif2png1 image.tif

if [ $# -ne 1 ]; then
  echo "usage: tif2png1 image.tif"
  exit
fi

image=$1
base=${image%.*}

tifftopnm "$image" | pnmtopng -compression=9 > "$base.png"

