Assistive-Webdriver

Home > vm-providers > pngToBuffer

pngToBuffer() function

Takes a png image and returns a buffer.

Signature:

export declare function pngToBuffer(png: PNG): Promise<Buffer>;

Parameters

Parameter Type Description
png PNG image

Returns:

Promise<Buffer>

a buffer containing the image in png format.