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
  • Converting spaces in filenames to underscores Linux supports long file names, in some (many?) ways better than windows. However, when I moved over to linux I had tons of files with spaces in the name. This isn't really a problem usually, but it can be a bit annoying having to enclose the filename in quotes for......
  • Converting MPG video to dv files I don't know much about the dv format, except that it is a standard format that many camcorders use. For this reason, many video editors (such as kino for linux) prefer to see files coming in dv format. The problem I ran into is that the new handycam dvd puts......
  • 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......
  • Optimizing Flash Files For The Search Engines What is a Flash Movie? A flash movie, or shock wave file (SWF), is the file format published when a Flash movie is exported. A SWF file can also be exported by several other Macromedia or Adobe Products. The SWF is usually an animation, dynamic menu, or highly interactive web-based......
  • Ten Steps To Become a Linux/Unix Geek Until recently, Linux/Unix was considered OS of the geeks. However, with GUI and more desktop Linux distributions, things have simplified on both Linux and Unix. Still you can geek out with Unix/Linux using its terminal. Just follow the steps below to master the terminal. 1. Never used Linux! Get Ubuntu......
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