discord-image-utils
Version:
A powerful library for generating and modifying images with Discord.js - includes meme generation, filters, effects and animations
14 lines (13 loc) • 556 B
TypeScript
/** @format */
type ImageInput = string | Buffer;
export default class Denoise {
/**
* Denoises an image using a gaussian filter.
* @param image - The image URL or Buffer to process.
* @param level - The intensity level for denoising (must be between 1 and 10; default is 1).
* @returns A Promise that resolves with a Buffer containing the processed image.
* @throws Will throw an error if the image is invalid or if level is out of range.
*/
getImage(image: ImageInput, level?: number): Promise<Buffer>;
}
export {};