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
  • Migrating Contacts from Evolution to Kontact I've toyed around with the idea of migrating everything over to Kontact for my mail. I've used Evolution since moving over to linux, but there are some things about Kontact that just seem slicker to me. While I was doing the install, I had the laptop setup to receive messages......
  • 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......
  • 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
  • Top 3 Tips for Buying Rare Foreign Coins It is important that you practice caution whenever you are buying something for your collection. It is especially important when you are purchasing rare foreign coins for your collection. This is because some of these coins have been around for centuries. You are not the first person to want to......
  • 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......
  • 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......
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