#!/bin/sh #This script is given with a argument. The name of the file #you want as the back ground when you put on is given as #argument. This file has to be either an ppm or pnm image #example: #puton banksy.pnm #The final file will be called the original name you started #out with for the for popnma with a "c" added to the beginning so if #you started with #popnma joker #you will finish with: #cjoker.pnm #get the name from the file like before name=`cat name.tmp` #Example one: You can place the figure by coordinates. #pamcomp -xoff=52 -yoff=80 -alpha=${name}m.alf ${name}m.pnm $1 >c${name}.pnm #Example two: You can place the figure by align and valign. pamcomp -align=right -valign=bottom -alpha=${name}m.alf ${name}m.pnm $1 >c${name}.pnm