UNPKG

@ezy/webp

Version:

libwebp wrapper for nodejs

17 lines (16 loc) 484 B
/** * * ### Description * Decompress a WebP file to an image file * * ### Examples * ```js * await dwebp('me.webp', 'me.png') * await dwebp('me.webp', 'me.ppm', '-ppm') * ``` * ### Params * @param input path of the output WebP file * @param output path of the output file (PNG format by default) * @param options https://developers.google.com/speed/webp/docs/dwebp */ export declare function dwebp(input: string, output: string, ...options: string[]): Promise<string>;