question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Difference between image-to-ascii and cli?

See original GitHub issue

dsc08890

Hi, I tried to convert above image using image-to-ascii and image-to-ascii-cli.

my code is as below.

const imageToAscii = require("image-to-ascii");
const pxs = ".`:,;'_^\"\\></-!~=)(|j?}{ ][ti+l7v1%yrfcJ32uIC$zwo96sngaT5qpkYVOL40&mG8*xhedbZUSAQ
PFDXWK#RNEHBM@";

imageToAscii("DSC08890.JPG",
  {pixels:pxs},
  (err, converted) => { console.log(err || converted); }
);

results are

screen shot 2016-06-03 at 4 49 15 pm

Would you let me know how can I produce ascii image like image-to-ascii-cli using image-to-ascii? What options do I need? Thanks.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
IonicaBizaucommented, Jun 3, 2016

@hansanghoon Ah, change that to xterm-256color. You will get 256 colors. ✨

1reaction
IonicaBizaucommented, Jun 3, 2016

What terminal emulator are you using? It looks like the color support is not correctly detected, but you can enforce it by using: node your-script.js --color=256

More info: https://github.com/chalk/supports-color#info

Read more comments on GitHub >

github_iconTop Results From Across the Web

Convert Image to ASCII library and cli write in go : r/golang
Image2ASCII is a library that converts images into ASCII images and provides command-line tools for easy use.
Read more >
How To Convert Images Into ASCII Format In Linux
This brief guide teaches how to convert images into ASCII format in Linux using Jp2a. Jp2a is a CLI tool to convert the...
Read more >
IonicaBizau/image-to-ascii-cli
View images in text format, in your terminal. Contribute to IonicaBizau/image-to-ascii-cli development by creating an account on GitHub.
Read more >
Converting an image to ASCII image in Python
ASCII art is a graphic design technique that uses computers for presentation and consists of pictures pieced together from the 95 printable ( ......
Read more >
Image to ASCII art in Python - OpenCV (tutorial) - YouTube
Transform / convert image-to-ascii in Python in this beginner-friendly introduction to OpenCV (python). We'll use a set of flag images ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found