This is a cli tool that converts any jpeg, jpg or png image to an ascii representation.
Original | Ascii'd |
---|---|
go run main.go [path-to-image] [character-width]
- Click here to download the latest release for your platform.
- Extract the archive to a preferred folder/directory
- Ensure this folder/directory is in your OS' PATH, otherwise add it to PATH
- Now you can run
go-img2ascii [path-to-image] [character-width]
from anywhere
- ✅ load and decode image file
- ✅ resize the image
- ✅ convert image to grayscale
- ✅ map grayscaled image to ascii characters
- ✅ save ascii'd image to file
- ✅ refactor with any cli library (https://github.com/urfave/cli)