@unpic/pixels
ascorbic/get-pixelsLoad and decode the pixels for a PNG or JPEG image in Node
This module will take the raw data or URL of a PNG or JPEG image and return the decoded pixels and dimensions of the image.
Installation
Install the module from npm.
Usage
There is also a getFormat
function that will return the format of the image
data. This is detected by the first magic bytes at the start of the data.