image-size
Version:
get dimensions of any image file
14 lines (13 loc) • 319 B
TypeScript
export interface ISize {
width: number;
height: number;
orientation?: number;
type?: string;
}
export type ISizeCalculationResult = {
images?: ISize[];
} & ISize;
export interface IImage {
validate: (input: Uint8Array) => boolean;
calculate: (input: Uint8Array) => ISizeCalculationResult;
}