Monday, March 14, 2011

To convert an image into ASCII code

For doing this, install an image converter jp2a using command in terminal:
               sudo apt-get install jp2a
Now the command's syntax to convert an image into ASCII code is:
Syntax:  
jp2a [ options ] [ filename(s) | URL(s) ]
For example to convert the following image in ASCII:
 
Type the following commands:
cd Desktop
jp2a --size=40*20 easterlogo.jpg
Then press enter
Following image will be displayed in terminal:




 Have fun with other options too.....at the following URL:http://manpages.ubuntu.com/manpages/hardy/man1/jp2a.1.htm





No comments:

Post a Comment