@jolly-pixel/image
v2.0.0
Published
PNG codecs and browser raster decoding
Readme
💃 Getting Started
This package is available in the Node Package Repository and can be easily installed with npm or yarn.
$ npm i @jolly-pixel/image
# or
$ yarn add @jolly-pixel/image👀 Usage example
import {
decodePng,
encodePng
} from "@jolly-pixel/image";
const { width, height, data } = await decodePng(bytes);
const png = await encodePng({
width,
height,
data
});📚 API
License
MIT
