Size of Screen printed
VeilleurTrytoFix opened this issue · 5 comments
VeilleurTrytoFix commented
hi, nice job for this package !
can we adjust size of picture in console.log, my picture is so big ?
THanks
VeilleurTrytoFix commented
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
IonicaBizau commented
Try this:
imageToAscii("https://octodex.github.com/images/octofez.png", {
size: {
height: "50%"
}
}, (err, converted) => {
console.log(err || converted);
});
VeilleurTrytoFix commented
thannks :)
IonicaBizau commented
😄
flyweights commented
good!