Display pixelart processed image in terminal, a CLI tool for to-pixel
npm install pixelart![]()
Display pixelart processed image in terminal, a CLI tool for to-pixel
> An image is worth a thousand words:
![]()
Currently only test in Mac OS X,to use this tool,you may use iTerm 2.9+.
Also this cli tool use node-canvas to render,so you need to install node-canvas's dependencies
After above step were done,is time to continue...:
``bash`
npm install -g pixelart
- png
- jpeg
- URL
bash
pixelart /path/to/image
`term-img options is supported.like:
`bash
pixelart /path/to/image --width=50
`API
pixel [Number]
scale pixel level
Thanks
Known issues
Image given has not completed loading?
try
`bash
brew uninstall jpeg && brew install jpeg
`then, reinstall node-canvas
`bash
npm install canvas
`or other strange bugs?
Just try reinstall all dependences which
node-canvas repo notedOn OS X,you can try
`bash
brew uninstall pkg-config cairo libpng jpeg giflib
`then
`bash
brew install pkg-config cairo libpng jpeg giflib
`then, reinstall node-canvas
`bash
npm install canvas
``