This is a TypeScript implementation of the PNG image format. The module
offers encoding and decoding abilities. The raw pixel format/ the decoded
format is a repeating sequence of [ r, g, b, a ]
in a Uint8Array
, or
Uint8ClampedArray
.
decodePNG is a function that decodes a PNG image into raw image data. The raw
image data is a sequence of [ r, g, b, a ]
numbers.
encodePNG is a function that encodes raw image data into the PNG image
format. The raw image data is expected to be in a sequence of
[ r, g, b, a ]
numbers.
The options that specify the metadata of the encoding image.
decodePNG is a function that decodes a PNG image into raw image data. The raw
image data is a sequence of [ r, g, b, a ]
numbers.
encodePNG is a function that encodes raw image data into the PNG image
format. The raw image data is expected to be in a sequence of
[ r, g, b, a ]
numbers.