Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # This file renders the supplied text string with imagemagick
- # and dumps it into the supplied filename
- #
- # usage: renderfont.sh <filename> <color> <multi word string>
- filename=$1
- color=$2
- string=$(echo $*|cut -f 3- -d " " | sed "s/'/\\\'/g" )
- echo $string
- convert +dither -size 720x480 xc:transparent -fill $color \
- -stroke black -strokewidth 3.5 -font "Bitstream-Vera-Sans-roman" \
- -pointsize 20 -gravity South -colors 4 -draw "text 0,40 '${string}'" \
- +stroke -draw "text 0,40 '${string}'" -channel A -threshold 255 \
- -colors 4 -contrast png8:$filename
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement