Linux Format forums Forum Index Linux Format forums
Help, discussion, magazine feedback and more
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Tip of the Month LXF69

 
Post new topic   Reply to topic    Linux Format forums Forum Index -> Magazine and coverdiscs
View previous topic :: View next topic  
Author Message
skecs



Joined: Fri Apr 22, 2005 10:22 am
Posts: 76
Location: Bathurst, NSW Australia

PostPosted: Sat Jul 09, 2005 8:55 am    Post subject: Tip of the Month LXF69 Reply with quote

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'`

Cool
_________________
Regards from
Downunder!
.... _
... (0)>
... / /\
.. / / .)
.. V_/_
Linux Powered!
Back to top
View user's profile Send private message
View previous topic :: View next topic  
Display posts from previous:   
Post new topic   Reply to topic    Linux Format forums Forum Index -> Magazine and coverdiscs All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Linux Format forums topic RSS feed 


Powered by phpBB © 2001, 2005 phpBB Group


Copyright 2011 Future Publishing, all rights reserved.


Web hosting by UKFast