Tip of the Month LXF69

Comments, suggestions and questions about Linux Format magazine and the coverdiscs

Moderators: ChriThor, LXF moderators

Tip of the Month LXF69

Postby skecs » Sat Jul 09, 2005 7:55 am

Just thought I post a quick correction to the code for Tip of the Month. The convert command is slightly wrong. It occurs after the title is set, and should read:

convert $TMP/$filename -font helvetica -fill yellow -pointsize 26 -box black -draw "text 10,40 '$title'" $TMP/$filename

This adds the text box 10 pixels from the left and 40 pixels from the top, if you want to move it just change these values. Don't forget the "|" between the other two code blocks. The full line is placed after the filename is set and ends up as:

title=`gawk -F \" '/\<b\>/ { print $1; exit; }' $PGE | sed -e :a -e 's/<[^>]*>//g;/</N;//ba'`

Regards from
.... _
... (0)>
... / /\
.. / / .)
.. V_/_
Linux Powered!
Posts: 76
Joined: Fri Apr 22, 2005 9:22 am
Location: Bathurst, NSW Australia

Return to Magazine and coverdiscs

Who is online

Users browsing this forum: No registered users and 1 guest