Skip to content

An application to render bitmap image files as ASCII characters.

License

Notifications You must be signed in to change notification settings

shahank42/img2ascii

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

img2ascii

A program to render bitmap image files as ASCII characters.

Usage

Download the latest version from the Releases page. Simply drag-and-drop the bitmap image file onto the executable file, and fill in the appropriate parameters.

Demo

  • Image Contrast Factor should be a value between 1 and 255.

Implementation Details

This project was really more of an effort to show that no external libraries should be necessary for image processing; that everything can be achieved through vanilla C++17.

In hindsight this philosophy was erroneous and it is definitely better to use an existing library such as OpenCV for this purpose, and in general any other computer vision related projects.

Some of the resources and repositories I used are listed under:

Known Issues

  • No user input validation done yet (so it's super easy to break the program).
  • Providing an ASCII Image Width longer than the actual number of horizontal pixels in the image causes a memory leak, and temporary freezing of the OS.
  • Slight perspective issue for vertical images (width < height), still thinking of an algorithm that can adjust ASCII-Image proportions to look natural according to a provided constant factor (squishification factor?).