UNPKG

photo-watermark-cli

Version:

A modern TypeScript CLI tool to add timestamp watermarks to photos with intelligent size scaling

14 lines 554 B
export declare const SUPPORTED_FORMATS: readonly [".jpg", ".jpeg", ".png", ".tiff", ".webp", ".bmp"]; /** * 扫描目录下的所有支持的图片文件 * @param directory - 要扫描的目录路径 * @returns 图片文件路径数组 */ export declare function scanPhotos(directory: string): Promise<string[]>; /** * 检查文件是否为支持的图片格式 * @param filePath - 文件路径 * @returns 是否为支持的图片格式 */ export declare function isSupportedImage(filePath: string): boolean; //# sourceMappingURL=scanner.d.ts.map