A suite to track Project Diva score statistics and ratings / D4DJ event data.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
projectdivar/server/node_modules/image-decode
sigonasr2 0785506fad Update and test twitter endpoints and connections. Prepare java spring server 4 years ago
..
.eslintrc.json Update and test twitter endpoints and connections. Prepare java spring server 4 years ago
.travis.yml Update and test twitter endpoints and connections. Prepare java spring server 4 years ago
bmp.js Update and test twitter endpoints and connections. Prepare java spring server 4 years ago
gif.js Update and test twitter endpoints and connections. Prepare java spring server 4 years ago
index.js Update and test twitter endpoints and connections. Prepare java spring server 4 years ago
jpg.js Update and test twitter endpoints and connections. Prepare java spring server 4 years ago
package.json Update and test twitter endpoints and connections. Prepare java spring server 4 years ago
png.js Update and test twitter endpoints and connections. Prepare java spring server 4 years ago
readme.md Update and test twitter endpoints and connections. Prepare java spring server 4 years ago
test.js Update and test twitter endpoints and connections. Prepare java spring server 4 years ago
tiff.js Update and test twitter endpoints and connections. Prepare java spring server 4 years ago
webp.js Update and test twitter endpoints and connections. Prepare java spring server 4 years ago

readme.md

image-decode unstable Build Status

Decode image data from raw encoded binary data in any image format: PNG, GIF, BMP, JPEG, TIFF.

Usage

npm install image-decode

let decode = require('image-decode')

let {data, width, height} = decode(fs.readFileSync('./data.png'))

API

let {data, width, height} = decode(buffer, mimeType?)

Takes input buffer with encoded image data and decodes its contents, returns pixels data array with layout [r, g, b, a, r, g, b, a, ...]. mimeType can be passed to skip image type detection.

buffer can be any binary data container:

  • ArrayBuffer
  • Buffer
  • Uint8Array
  • File
  • Blob
  • base64 string

See also

Credits

© 2018 Dmitry Yv. MIT License.