@logitech-mx-creative-console/node
Version:
An npm module for interfacing with the Logitech MX Creative Console in node
13 lines • 516 B
TypeScript
export interface JPEGEncodeOptions {
quality: number;
subsampling?: number;
}
/**
* The default JPEG encoder.
* `@julusian/jpeg-turbo` will be used if it can be found, otherwise it will fall back to `jpeg-js`
* @param buffer The buffer to convert
* @param width Width of the image
* @param height Hieght of the image
*/
export declare function encodeJPEG(buffer: Uint8Array, width: number, height: number, options: JPEGEncodeOptions | undefined): Promise<Uint8Array>;
//# sourceMappingURL=jpeg.d.ts.map