alivesay / ansi-blit

Displays images in your shell?
https://www.npmjs.com/package/ansi-blit
MIT License
15 stars 0 forks source link

Add option to set target size for display #1

Open VanAxe opened 9 years ago

VanAxe commented 9 years ago

jimp seems to have the ability to scale images.

It might be nice to be able to set the target dimension for display.

# --displayWidth
# --displayHeight
$ blit --displayWidth 16 --displayHeight 8 --mode randomtile sprites.png
PICTUREPICTUREPI
CTUREPICTUREPICT
UREPICTUREPICTUR
EPICTUREPICTUREP
ICTUREPICTUREPIC
TUREPICTUREPICTU
REPICTUREPICTURE
PICTUREPICTUREPI

Not breaking aspect ratio might be fun...

I'll try and submit a pull request.

alivesay commented 9 years ago

I originally had an option to scale.. though now I can't remember why I pulled it out. :|

Will take a look tonight...