GitXplorerGitXplorer
h

pixelart

public
2 stars
1 forks
0 issues

Commits

List of commits on branch master.
Unverified
fe6c3d4e8c9f64789ca479edf6a7992725cdafdf

update README

hhanaarena committed 9 years ago
Unverified
eaef913500f2ff443eef151f1d43cbd4204ca3fe

[feature] support remote url

hhanaarena committed 9 years ago
Unverified
69b6a48344e138f7d9d82ce6e521f653f6791c33

improvement

hhanaarena committed 9 years ago
Unverified
e027db8a7f10a265182298c53cb6bf1e6049f884

init repo

hhanaarena committed 9 years ago

README

The README file for this repository.

pixelart NPM version

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

An image is worth a thousand words:

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