Utility to get imageData of large size image not able to treat with canvas for pixel size limitation.
$ npm install @kaorun/large-imagedata
import { LargeImageData } from @kaorun/large-imagedata;
-
size
- canvas width and height to split image.
Get imageData of HTMLImageElement or ImageBitmap.
-
value
- HTMLImageElement or ImageBitmap to get imageData.
-
imageData
- return HTMLImageElement.-
width
- source image width. -
height
- source image height. -
data
- rgba data array.
-
Load image file to HTMLImageElement. Recommended.
-
path
- path to image file.
-
promise
- resolve HTMLImageElement.
Load image file to ImageBitmap.
-
path
- path to image file.
-
promise
- resolve ImageBitmap.