UNPKG

@chenlei28188/image-processor-mcp

Version:

MCP Server for intelligent image processing and analysis

20 lines 799 B
export declare class ImageUtils { private static readonly SUPPORTED_FORMATS; static loadImage(source: string): Promise<Buffer>; private static loadFromUrl; private static loadFromBase64; private static loadFromFile; static saveBuffer(buffer: Buffer, format: string, outputDir?: string, customPath?: string): Promise<string>; static getImageInfo(buffer: Buffer): { size: number; type?: string; }; static validateImageBuffer(buffer: Buffer): boolean; static downloadWithRetry(url: string, maxRetries?: number): Promise<Buffer>; static formatFileSize(bytes: number): string; static calculateAspectRatio(width: number, height: number): { ratio: number; description: string; }; } //# sourceMappingURL=ImageUtils.d.ts.map