-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathindex.d.ts
More file actions
49 lines (42 loc) Β· 1.12 KB
/
index.d.ts
File metadata and controls
49 lines (42 loc) Β· 1.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
/**
* RemoveBanana β Remove AI watermarks from Gemini images
* π https://removebanana.eu.cc
*/
export interface WatermarkMeta {
inputSize: { width: number; height: number };
watermark: {
size: number;
position: { x: number; y: number; width: number; height: number };
};
format: string;
source: string;
}
export interface RemoveWatermarkResult {
outputPath: string;
meta: WatermarkMeta;
}
export interface RemoveWatermarkBufferResult {
buffer: Buffer;
meta: WatermarkMeta;
}
export interface RemoveWatermarkOptions {
format?: 'png' | 'jpeg' | 'jpg' | 'webp';
quality?: number;
silent?: boolean;
}
/**
* Remove watermark from an image file
*/
export function removeWatermark(
inputPath: string,
outputPath?: string,
options?: RemoveWatermarkOptions
): Promise<RemoveWatermarkResult>;
/**
* Remove watermark from an image Buffer
*/
export function removeWatermarkFromBuffer(
inputBuffer: Buffer,
options?: RemoveWatermarkOptions
): Promise<RemoveWatermarkBufferResult>;
export const version: string;