PhpDig.net

Go Back   PhpDig.net > General Forums > Coding & Tutorials

Reply
 
Thread Tools
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
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Get text from alt and title images attributes? djuritz How-to Forum 0 07-14-2006 06:05 AM
Help!!! Windows....Linux problems? NewDigger Troubleshooting 3 11-20-2004 08:32 AM
looking for dll on linux while spidering? Topaz Troubleshooting 1 10-11-2004 01:42 AM
Thumbnail images (only in special cases) renehaentjens Mod Submissions 10 09-09-2004 01:13 AM
How do I generate static search pages from keyword list? inthestars How-to Forum 4 04-11-2004 12:45 PM


All times are GMT -8. The time now is 02:50 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright © 2001 - 2005, ThinkDing LLC. All Rights Reserved.