image-size
Version:
get dimensions of any image file
10 lines (7 loc) • 329 B
TypeScript
import { ISizeCalculationResult } from './types/interface.js';
declare const setConcurrency: (c: number) => void;
/**
* @param {string} filePath - relative/absolute path of the image file
*/
declare const imageSizeFromFile: (filePath: string) => Promise<ISizeCalculationResult>;
export { imageSizeFromFile, setConcurrency };