[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: gEDA-user: Toporouter Updates
On Thu, 02 Jul 2009 10:55:51 -0700, Eric Brombaugh wrote:
> Nice rendering - esp. like the white background visible through the
> holes & the drop shadow. How do you do that?
A simple script layout-print.sh that postprocesses the png output of pcb
with the convert utility from the imagemagick suite:
/-------------------
#!/bin/bash
PCBFILE=$1
OUTPNG=`basename $PCBFILE .pcb`"_layout.png"
pcb -x png --photo-mode --dpi 600 --use-alpha --only-visible \
--outfile /tmp/out.png $PCBFILE
convert /tmp/out.png \
\( +clone -background black -shadow 75x20+20+20 \) \
+swap -background white -layers merge -resize 50% $OUTPNG
\-------------------
This was inspired by a posting on the mailing list, some months back,
when photo realistic rendering was new. The shadow trick was taken from
an imagemagick HOWTO.
---<(kaimartin)>---
PS: Big thanks to Ben for this awsome output mode!
--
Kai-Martin Knaak
Öffentlicher PGP-Schlüssel:
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x6C0B9F53
_______________________________________________
geda-user mailing list
geda-user@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-user