Node.js Express Project to Convert Image to Byte Array in Browser Using Javascript Full Project For Beginners

 

 

imgToByteArray

Convert image to byte array.

Installation: Clone it and install deps with

git clone https://github.com/david1983/imgToByteArray.git && 
cd imgToByteArray && 
npm install

Run with

node app.js

The App is really simple ,allows to convert an img (color or bw) to monochromatic array of bytes (that I use to render on LCD/OLED screen with arduino). The code is not really elegant but it does the job.

See also  Build a jQuery Persian Calendar Datepicker to Pick Persian Dates in Browser Using HTML5 & Javascript

 

 

app.js

 

 

var express = require('express');
var app = express();
app.use(express.static('public'));
app.listen(3000, function () {
  console.log('Example app listening on port 3000!');
});

 

 

 

DOWNLOAD FULL SOURCE CODE

 

Leave a Reply