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
Our Free Plans just got better! | Auth0 Icon
Our Free Plans just got better! | Auth0

With up to 25k MAUs and unlimited Okta connections, our Free Plan lets you focus on what you do best—building great apps.

You asked, we delivered! Auth0 is excited to expand our Free and Paid plans to include more options so you can focus on building, deploying, and scaling applications without having to worry about your security. Auth0 now, thank yourself later.
Try free now
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

3 days ago