Viewing Images Without Graphical Environment

Today I came to know about interesting feature of Ubuntu ‘Viewing Images Without Graphical Environment’.

  • It’s that we can convert a picture to lots of numbers and letters.
  • When viewed from a distance, the contents of the photo can just about be made out. It’s far from ideal one but it is quite fun and entertaining.
  • To do this , first of all install aview and imagemagick packages:

sudo apt-get install aview

sudo apt-get install imagemagick

  • aview: It is a high quality ASCII art image viewer and video player . It is especially useful with a text-based browser such as lynx, links or w3m. It supports the pnm, pgm, pbm and ppm image formats, as well as the FLI and FLC video formats. It also supports output via stdio, (n)curses and slang and even has support for gpm.
  • imagemagick: It  provides a suite of commandline utilities for creating, converting, editing, and displaying images.
  • Now go to terminal (ctrl+alt+t) and type the following in the terminal:

                                                  asciiview filename.jpg

  • Before run this command first change your directory where your file is placed
  • The file can be any image format. After typing the command, hit q .It will generate the asciiview of the image.
  • Example:

  • Its ascii code view is as follow;

This entry was posted in Uncategorized. Bookmark the permalink.

Leave a comment