Quick way to make a text only banner image



Linux.com has a great writeup on making banner images quickly and easily from the command line (or a script). The catch here is that text is the content for the image. Under linux that will require the following programs…. enscript and convert. Of course since this can be done from the command line, it can be scripted which might make an easy way to display email addresses without allowing address harvesting among other things… Anyway, here’s a summary…


echo "Headlines for `date +'%B %e'`" | enscript -o - -B -f "Times-Bold48" | convert -crop 0x0 - headlines.png

Here, they’ve used echo to send the current date to enscript…. enscript creates a postscript file of the text using the Times-Bold font at 48 point(to standard out) and then convert reads the ps file and crops it neatly around the text and dumps it to the headlines.png file.

They note that you can play around with options to convert to get other colors than black and white -negate for instance gives you a white text on black background and they also give some ideas for colored borders.

By the way, for a list of possible fonts you can look in /usr/share/enscript/afm/font.map

Nice tutorial.

Related Posts

Blog Traffic Exchange Related Posts
  • Linux - ToVid for vcd creation Linux.com has an article about ToVid, a utility to help convert video into VCD format. ToVid started out as just a VCD imager for mpeg files, but has expanded to be able to handle most video formats for input. It can also work with dvdauthor and other tools depending on......
  • Two new Windows exploits in the Wild | Wordpad Text Converter | Internet Explorer 7 XML Parser In the wake of a huge patch Tuesday, Microsoft has two new fires to be fighting. There are apparently "limited and targeted" attacks against a flaw with the Text converter component of Wordpad. Affected systems include Windows 2000 SP4, XP up to SP2, Server 2003 SP1 and 2. Vista is......
  • Using the command line in linux - part 4 Dealing with text.... we've looked at a couple of basics on logging in and starting to use the command line and hopefully not feeling too helpless there... we've seen ways to navigate directories and how to find new commands and how to find out more about how to use them.......
Blog Traffic Exchange Related Websites
  • Inaugural Edition of Green Fairways Carnival Welcome to the inaugural edition of Green Fairways Carnival. There are several wonderful posts to share with readers on a variety of golf related topics. Many thanks to the bloggers who submitted for this first edition. If you have a golf blog and want to submit posts to the......
  • Turn Any File into an EXE with Convert to EXE If you're a geek like me, you may on occasion have run into a situation where you had a file that you needed to convert to exe. I had read a few forum posts and tutorials on how to do this with self-extracting installers, and I even managed to do......
  • Filing Cabinets Filing Cabinets When it is time to choose a filing cabinet, it is important to consider a few things such as quality, security and type of cabinet. There are basically four different types of cabinets available in the market today. Deciding on one will depend on how much space you......
www.pdf24.org    Send article as PDF   

Similar Posts


See what happened this day in history from either BBC Wikipedia
Search:
Keywords:
Amazon Logo

Comments are closed.


Switch to our mobile site