get pixel data without colour profile
order of attempts at retrieving pixel data will be:
ImageBitmap
image-decode
img
canvas
ImageData
example:
import { getPixels } from 'just-give-me-the-pixels'; const { width, height, data } = await getPixels('image src.png');
image source
image width, height, and data
Generated using TypeDoc
get pixel data without colour profile
order of attempts at retrieving pixel data will be:
ImageBitmap
and reading from a WebGL framebufferimage-decode
img
, drawing into acanvas
, and reading viaImageData
example: