Home > vm-providers > pngToBuffer
Takes a png image and returns a buffer.
Signature:
export declare function pngToBuffer(png: PNG): Promise<Buffer>;
| Parameter | Type | Description |
|---|---|---|
| png | PNG | image |
Returns:
Promise<Buffer>
a buffer containing the image in png format.