#!/bin/sh #first I save the base name you gave as argument to outline #in a Little file fore later use. echo "$1" >name.tmp; #first I make it a pgm (gray scale image) because Po can't handle a full color photo. #I want my outline to be the only totally black thing in the image #so now I remove all black by substituting black with white in the #image. ppmtopgm $1.pnm |ppmchange rgb:0/0/0 rgb:f/f/f >ret0.tmp; #but if there is nothing black in the image Po will give me no #black to paint with ether. So I need to ad a little black in a plays #where it can be easily removed again. A little black line on the #left edge of the image. pnmpad -left=2 ret0.tmp |ppmtopcx >tmp.pcx; po tmp.pcx