A browser/server utility that extracts RGBA data from images.
get-image-data is a browser/server utility that extracts RGBA data from images. It also provides the image’s height and width.
$ npm install get-image-data
note: canvas is not installed alongside get-image-data
get-image-data requires automattic/node-canvas for its server/node variant, however, to avoid browser-only users from having to endure the native compilation process, it needs to be npm installed separately.
var image =