UNPKG

inference-server

Version:

Libraries and server to build AI applications. Adapters to various native bindings allowing local inference. Integrate it with your application, or use as a microservice.

14 lines (13 loc) 545 B
import { ResizeOptions } from 'sharp'; import { Image } from '../types/index.js'; interface ImageTransformationOptions { resize?: { width: number; height: number; fit?: ResizeOptions['fit']; }; } export declare function loadImageFromUrl(url: string, opts?: ImageTransformationOptions): Promise<Image>; export declare function loadImageFromFile(filePath: string, opts?: ImageTransformationOptions): Promise<Image>; export declare function saveImageToFile(image: Image, destPath: string): Promise<void>; export {};