README
console-jpeg
Print JPEG images to terminal output
demo
Usage
- install
npm install console-jpeg
- import
var consoleJpeg = require('console-jpeg');
- attach to console
var image = require('fs').readFileSync(__dirname + '/nodejs-green.jpeg');
consoleJpeg.attachTo(console);
console.jpeg(image);
- jpegStringiy
var image = require('fs').readFileSync(__dirname + '/nodejs-green.jpeg');
console.log(consoleJpeg.jpegStringify(image));
Thanks
- inspired by console-png
- pure javascript jepg decode by jpeg-js
- colorful console use ansi-256-colors