0.0.2 • Published 8 years ago

pixelart v0.0.2

Weekly downloads
4
License
MIT
Repository
github
Last release
8 years ago

npm.io

pixelart NPM version

Display pixelart processed image in terminal, a CLI tool for to-pixel

An image is worth a thousand words:

npm.io

Install

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...:

npm install -g pixelart

Feature

  • png
  • jpeg
  • URL

Usage

pixelart /path/to/image

term-img options is supported.like:

pixelart /path/to/image --width=50

API

pixel Number

scale pixel level

Thanks

Known issues

Image given has not completed loading?

try

brew uninstall jpeg && brew install jpeg

then, reinstall node-canvas

npm install canvas

or other strange bugs?

Just try reinstall all dependences which node-canvas repo noted

On OS X,you can try

brew uninstall pkg-config cairo libpng jpeg giflib

then

brew install pkg-config cairo libpng jpeg giflib

then, reinstall node-canvas

npm install canvas