IonicaBizau/image-to-ascii

Size of Screen printed

VeilleurTrytoFix opened this issue · 5 comments

hi, nice job for this package !
can we adjust size of picture in console.log, my picture is so big ?

THanks

i dont understand how to use options 👍
size (Object): The size of the result image (ASCII art):
height (Number|String): The height value (default: "100%").
width (Number|String): The width value (default: computed value to keep aspect ratio).

can you give me an example ? thanks

Try this:

imageToAscii("https://octodex.github.com/images/octofez.png", {
  size: {
     height: "50%"
  }
}, (err, converted) => {
    console.log(err || converted);
});

thannks :)

😄

good!