buffer-image-size
Version:
get dimensions of any image buffer
19 lines (13 loc) • 441 B
TypeScript
// Based on type definitions for image-size
// Project: https://github.com/image-size/image-size
// Definitions by: Elisée MAURER <https://github.com/elisee>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference types="node" />
interface ImageInfo {
width: number;
height: number;
type: string;
}
declare function sizeOf(buffer: Buffer): ImageInfo;
declare namespace sizeOf { }
export = sizeOf;