[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: gEDA-user: printing



On Sat, 15 May 2004 06:15:03 -0400
Bob Paddock <bpaddock@csonline.net> wrote:

> gerb2tif:
> http://members.optusnet.com.au/~eseychell/

Or with gerb2tif, ImageMagick (version 6) and the following script, print tiled images:

#/bin/bash

if [ $# -ne 1 ]; then
	echo "usage: $0 <base_name>"
	exit 1
fi

OUTNAME=table.png

BASENAME="$1.pcb.output_"

BACK="$BASENAME"back
BACKMASK="$BACK"mask
#BACKPASTE="$BACK"paste
BACKSILK="$BACK"silk
FAB="$BASENAME"fab
FRONT="$BASENAME"front
FRONTMASK="$FRONT"mask
#FRONTPASTE="$FRONT"paste
FRONTSILK="$FRONT"silk

FILES="$BACK.gbr $BACKMASK.gbr $BACKSILK.gbr $FAB.gbr \
	$FRONT.gbr $FRONTMASK.gbr $FRONTSILK.gbr"

gerb2tif -p 300 $FILES

convert \( "$FRONT".gbr.tif "$BACK".gbr.tif +append \) \
	\( "$FRONTSILK".gbr.tif "$BACKSILK".gbr.tif +append \) -append \
	\( "$FRONTMASK".gbr.tif "$BACKMASK".gbr.tif +append \) -append \
	"$OUTNAME"

David Koski
david.nospham@KosmosIsland.com
!.nospham