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
Our Free Plans just got better! | Auth0
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.
Rate This Project
Login To Rate This Project
User Reviews
Be the first to post a review of image-to-ascii!