just-give-me-the-pixels
v1.0.3
Published
get pixel data without colour profile
Downloads
4
Maintainers
Readme
just-give-me-the-pixels
get pixel data without colour profile
npm i just-give-me-the-pixels
order of attempts at retrieving pixel data will be:
- loading into an
ImageBitmap
and reading from a WebGL framebuffer - fetching as a buffer and parsing via
image-decode
- loading into an
img
, drawing into acanvas
, and reading viaImageData
example:
import { getPixels } from 'just-give-me-the-pixels';
const { width, height, data } = await getPixels('image src.png');