For this we will use
Jp2a is a program to change any picture that you want, to ASCII art, and it generates HTML codes as well.
To install jp2a in linux, run the following command in your terminal:
$ sudo apt-get install jp2a
Now to change the picture to ASCII, just enter the directory of the picture, and run this command:
$ jp2a picture.jpg
and if your picture is in .PNG, you have to convert it to .JPG first to change to ASCII. to convert run this command:
$ convert Picture.PNG Converted-Pictrue.JPG
Now just have fun!