sharp-vibrant
Version:
Extract prominent colors from an image in a node environment using sharp.
18 lines (16 loc) • 378 B
text/typescript
import type { Palette } from '../../src/color';
import type { Sharp } from 'sharp';
import type { ImageDimensions } from '../../src/typing';
export interface Sample {
name: string
sharp: Sharp
filePath: string
dimensions: ImageDimensions
palettes: {
[env: string]: Palette
};
}
export interface SampleContext {
current: Sample[]
snapshot: Sample[] | null
}