#!/bin/sh # usage: compressgif test.gif # assures that a file test.gif becomes LZW compressed. convert $1 tmp1.pnm ppmquant 256 tmp1.pnm>tmp2.pnm ppmtogif tmp2.pnm>$1 rm tmp1.pnm tmp2.pnm