[Skip To Content]


and all the networks and the tv stations / feed me lies and simple explanations / but they can’t fool me on the state of this nation love.

“Just Like Money”, Kent.

# images in your terminal

Moo!

Here is a quick and dirty script to display images in your terminal (Which is something I want to do fairly often.) It works best in a terminal which supports 256 colours, but gives sort-of-OK results in 16-colour terminals. And despite what the name might imply, it works with pretty much any image type, not just jpegs.

In case anyone else finds it useful, here it is. You’ll want RMagick installed, and both of these files :

Simply run it giving an image as an argument to the script :

  1. ruby xtermpeg.rb FuryCow_120.jpg

(And here is FuryCow_120.jpg, should you want it.)

Or, if you want to display a large image :

  1. convert FuryCow_1200.jpg -scale 100x /dev/stdout | ruby xtermpeg.rb

(And here is FuryCow_1200.jpg, should you want it.)

The code is public domain, so you’re free to do whatever with it.

More about this site...

Last Week’s Top 5 Albums (More »)

  1. Conor OberstConor Oberst
  2. Cruel TownBroder Daniel
  3. Far From the Maddening CrowdsChicane
  4. The Midnight Organ FightFrightened Rabbit
  5. Perfect CureLorraine