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

Size of Screen printed #45

Closed VeilleurTrytoFix closed 7 years ago

VeilleurTrytoFix commented 7 years ago

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

THanks

VeilleurTrytoFix commented 7 years ago

i dont understand how to use options :+1: 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

IonicaBizau commented 7 years ago

Try this:

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

thannks :)

IonicaBizau commented 7 years ago

😄

flyweights commented 1 year ago

good!