#!/bin/sh
#
# usage: sh run basename "pl-opts"
#
# loose option gives result that is loosely cropped.
# normally, tight crop is used.

if [ $# -lt 1 ]; then 
  echo "usage: sh run basename pl-opts"
  exit
fi

THUMBSCALE=0.3

pl -gif $1.htm $2 -o $1.gif

pl -png -scale $THUMBSCALE $1.htm -o thumbnails/$1.png
