UNPKG

collageify

Version:

accepts images, creates a collage, and downloads it as a file, get the dominant colors in the uploaded image

15 lines (13 loc) 607 B
interface CollageOptions { images: (File | string)[]; rows?: number; cols?: number; width?: number; height?: number; padding?: number; backgroundColor?: string; } declare function createCollage({ images, rows, cols, width, height, padding, backgroundColor, }: CollageOptions): Promise<HTMLCanvasElement>; declare function downloadCanvas(canvas: HTMLCanvasElement, filename?: string): void; declare function getDominantColorsFromImage(file: File, colorCount?: number): Promise<string[]>; export { type CollageOptions, createCollage, downloadCanvas, getDominantColorsFromImage };