IonicaBizau / image-to-ascii

:floppy_disk: A Node.js module that converts images to ASCII art.
http://ionicabizau.net/blog/16
MIT License
1.58k stars 105 forks source link

256 colors #63

Closed pm0u closed 4 years ago

pm0u commented 5 years ago

It seems in my terminal, images only ever display with 16 colors, although my terminal is capable of 256.. Is this an issue with my terminal or a limitation of image-to-ascii? 256 color support would be amazing!

IonicaBizau commented 4 years ago

What is the operating system / terminal you are using?

pm0u commented 4 years ago

I'm am using Termite and archlinux. I can get you more specific version info if needed

IonicaBizau commented 4 years ago

Try setting the FORCE_COLOR env variable:

# 16 colors
FORCE_COLOR=1 node example

# 256 colors
FORCE_COLOR=2 node example

# 16M colors
FORCE_COLOR=3 node example