image-to-ascii is a Node.js module that converts raster images into character-based terminal artwork. Input can come from a local file, remote URL, or in-memory Buffer. The converter maps pixel brightness to a configurable sequence of ASCII characters. It can preserve the original colors through ANSI foreground or background styles or generate plain monochrome output. Options control width, height, screen fitting, aspect ratio, transparency, reversed brightness, and custom background colors. Developers can receive a final string or work with the underlying pixel matrix through custom processing functions. A companion command-line package and webcam example provide additional ways to use the conversion engine.

Features

  • Local, remote, and Buffer image input
  • Colored ANSI terminal output
  • Custom ASCII character palettes
  • Automatic screen fitting
  • Aspect ratio preservation
  • Reversed and custom background rendering

Project Samples

Project Activity

See All Activity >

Categories

Libraries

License

MIT License

Follow image-to-ascii

image-to-ascii Web Site

Other Useful Business Software
MongoDB Atlas runs apps anywhere Icon
MongoDB Atlas runs apps anywhere

Deploy in 115+ regions with the modern database for every enterprise.

MongoDB Atlas gives you the freedom to build and run modern applications anywhere—across AWS, Azure, and Google Cloud. With global availability in over 115 regions, Atlas lets you deploy close to your users, meet compliance needs, and scale with confidence across any geography.
Start Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of image-to-ascii!

Additional Project Details

Programming Language

JavaScript

Related Categories

JavaScript Libraries

Registered

2 days ago