Skip to content

hamax97/ascii-art

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ASCII Art

Turns images into ASCII art.

Implemented based on this guide.

Tech stack used:

  • NodeJS.
  • Sharp.
  • Jest.
  • Joi, for parameter validation.

Install

npm install

Run

Usage gif

Show help:

node src/app.js -h

Print image with ASCII characters:

  1. Write the following command but do not hit enter yet.

    node src/app.js --imagePath <path/to/the/image>
  2. Zoom out as much as possible your terminal.

  3. Hit enter.

The program assumes a screen resolution of 1920x1080. If the ASCII art looks squashed or weird you can specify another screen resolution using the flag --screenResolution <width>x<height>:

node src/app.js --imagePath <path/to/the/image> --screenResolution 1280x720

Examples

The cross of Christ:

The cross of Christ       The cross of Christ ASCII

Mario Bros:

Mario Bros       Mario Bros ASCII

Monkey:

Monkey       Monkey ASCII

About

Turns images into ASCII art

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors