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
Categories
LibrariesLicense
MIT LicenseFollow image-to-ascii
Other Useful Business Software
MongoDB Atlas runs apps anywhere
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.
Rate This Project
Login To Rate This Project
User Reviews
Be the first to post a review of image-to-ascii!