View Single Post
Old 03-05-2004, 11:37 AM   #1
Charter
Head Mole
 
Charter's Avatar
 
Join Date: May 2003
Posts: 2,539
Generate text images on Linux

Hi. Say you want to generate a GIF image containing some text. Assuming you have the PBM package that may come with Linux, just do the following from shell in the directory where you'd like the image to reside.
Code:
prompt> echo "some text" | pbmtext | pnmcrop | pnmpad -white -l2 -r2 -t2 -b2 > sometext.pnm
prompt> convert sometext.pnm sometext.gif
prompt> rm sometext.pnm
This would produce the image shown here.

Remember to remove any "word" wrapping in the above commands.
__________________
Responses are offered on a voluntary if/as time is available basis, no guarantees. Double posting or bumping threads will not get your question answered any faster. No support via PM or email, responses not guaranteed. Thank you for your comprehension.
Charter is offline   Reply With Quote