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:
ImageBitmap
and reading from a WebGL framebufferimage-decode
img
, drawing into a canvas
, and reading via ImageData
example:
import { getPixels } from 'just-give-me-the-pixels';
const { width, height, data } = await getPixels('image src.png');
Generated using TypeDoc