UNPKG

mindee

Version:

Mindee Client Library for Node.js

10 lines (9 loc) 429 B
/** * Compresses an image with the given parameters. * * @param imageBuffer Buffer representation of an image. * @param quality Quality to apply to the image (JPEG). * @param maxWidth Maximum bound for width. * @param maxHeight Maximum bound for height. */ export declare function compressImage(imageBuffer: Buffer, quality?: number, maxWidth?: number | null, maxHeight?: number | null): Promise<Buffer<ArrayBufferLike>>;