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......
  • SVG editing under linux with Inkscape (Or on Mac, Windows or other Unix) DesktopLinux has the news of a new release of Inkscape, an open source SVG editor for Linux, Max, Windows and Unix. The program boasts capabilities similar to Illustrator, Freehand, CorelDraw, and Xara X, which also use W3C standard SVG file formats. I've used Inkscape before and I'm not big into......
  • 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......
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......
  • 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......
  • 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