image-js
Version:
Image processing and manipulation in JavaScript
17 lines • 598 B
TypeScript
import type { Image } from '../Image.js';
/**
* Read an image from the disk.
* The file format is automatically selected based on the first few bytes.
* This method is only implemented for Node.js.
* @param path - The path to the image.
* @returns Image instance.
*/
export declare function read(path: string | URL): Promise<Image>;
/**
* Synchronous version of {@link read}.
* This method is only implemented for Node.js.
* @param path - The path to the image.
* @returns Image instance.
*/
export declare function readSync(path: string | URL): Image;
//# sourceMappingURL=read.d.ts.map