img2txt icon indicating copy to clipboard operation
img2txt copied to clipboard

Image to Ascii Text with color support, can output to html or ansi terminal.

Results 8 img2txt issues
Sort by recently updated
recently updated
newest added

I've did something similar in c using fg+bg color and unicode character "upper half block" U+2580 = ▀ = UPPER HALF BLOCK to get double y resolution

Currently the ANSI output distorts the image, because each "pixel" is made up of a roughly 2x1 character. Can the ANSI function be edited so that each pixel creates two...

It's hard to use Python 2 utilities with conda. (No easy way to run a command in specific virtual env AFAIK)

The code that maps rgb pixel inputs to ascii characters in the `generate_grayscale_for_image()` function can be written more efficiently by using matrix calculations from numpy. Currently, it looks like this:...

Would you consider adding a switch that outputs old-style 16-color ANSI instead of 256-color?

Line 69 will fail if different (or non) tuple is unpacked. This may happen if RGBT (transparency) is used (for example .png). Fixed by changing line 36 From " img...

比如,一个中国人的照片,头发都是黑色的,没必要这么生成html ``` xxx ``` 更好的应该这样 ``` xxx ```