https://github.com/guptaanmol184/ascii-art
Image to ascii art generator
https://github.com/guptaanmol184/ascii-art
Last synced: 3 months ago
JSON representation
Image to ascii art generator
- Host: GitHub
- URL: https://github.com/guptaanmol184/ascii-art
- Owner: guptaanmol184
- License: mit
- Created: 2018-12-14T05:06:44.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-12-23T06:46:18.000Z (almost 7 years ago)
- Last Synced: 2025-07-03T03:05:39.728Z (3 months ago)
- Language: Python
- Size: 259 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ascii-art
Image to ascii art generatorDependencies
- [Pillow](https://pypi.org/project/Pillow/)
- [Colorama](https://pypi.org/project/colorama/)
- stty from coreutils (should be present)```
$ ./ascii-art.py --help
usage: ascii-art.py [-h] [-f {average,lightness,luminosity}]
[-c {black,red,green,yellow,blue,magenta,cyan,white,rgb}]
[-i] [-t THRESHOLD]
imageTransform a 3 band JPG image to ascii art.
positional arguments:
image The image to transform.optional arguments:
-h, --help show this help message and exit
-f {average,lightness,luminosity}, --filter {average,lightness,luminosity}
Choose the filter to use.
-c {black,red,green,yellow,blue,magenta,cyan,white,rgb}, --color {black,red,green,yellow,blue,magenta,cyan,white,rgb}
Choose the color of the output.
-i, --invert Invert the image. Make more bright areas less bright
and less, more.
-t THRESHOLD, --threshold THRESHOLD
Use this argument with color='rgb' to control only
hilighted pixels. Threshold is a float between 0 to 1.
Set threshold as 1 to color with the dominating color.
Default: 0.0.```
#### Example

