@barbuza/bdsm
Version:
Extracts dominant colors from bottom and top parts of an image.
17 lines (13 loc) • 384 B
TypeScript
declare module '@barbuza/bdsm' {
export interface IColor {
r: number;
g: number;
b: number;
}
export interface IOptions {
resizeWidth?: number;
cropHeight?: number;
borderCropHeight?: number;
}
export function findDominantColors(imageFile: string, options?: IOptions): Promise<{ top: IColor, bottom: IColor }>;
}