console-jpeg

Print JPEG images to terminal output

Usage no npm install needed!

<script type="module">
  import consoleJpeg from 'https://cdn.skypack.dev/console-jpeg';
</script>

README

console-jpeg

Print JPEG images to terminal output

demo

demo result

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

END