Cat got your jpeg?

cat is a great command line utility. It prints files to the console. It also combine multiple files into one. You can even cat together non-text files like mpegs!

Unfortunately, you can’t cat images to the console, which is a pain in the ass. Of course, OSX has spacebar preview, but you have to leave the console for that and it only works on Macs. 😑

Fortunately, Eduardo San Martin Morote saw an opportunity and created catimg, a C application which, surprise, prints images to the console:

catimg screenshot

Sure, it’s blocky and coarse, but it’s also fast and it works. Now I can edit text files, preview an image without switching windows, and go back to whatever I was doing. And yes, you can now cat cats. 😸

You can specify a desired height / width, or catimg will default to the width of your current terminal.

Comments :)
2017 Neal Shyam