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
  • 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.......
  • 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
  • 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......
  • 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......
  • 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......
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