You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 7-8.RSVP
Socket
Socket
Sign inDemoInstall

get-image-data

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

get-image-data

isomorphic image data extraction


Version published
Weekly downloads
1.3K
increased by11.05%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

get-image-data

isomorphic image data extraction

ci

install

npm install michaelrhodes/get-image-data#5.0.0 [jimp] [sharp]

use

// Extract data with canvas element or `jimp`
var image = require('get-image-data')

image('./image.jpg', function (err, info) {
  var data = info.data
  var height = info.height
  var width = info.width

  for (var i = 0, l = data.length; i < l; i += 4) {
    var red = data[i]
    var green = data[i + 1]
    var blue = data[i + 2]
    var alpha = data[i + 3]
  }
})

// Extract data with `sharp` (faster)
var image = require('get-image-data/native')

obey

CC0-1.0

FAQs

Package last updated on 21 Jul 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc