ai-pp3
Version:
CLI tool combining multimodal AI analysis with RawTherapee's engine to generate optimized PP3 profiles for RAW photography
25 lines (24 loc) • 1.07 kB
TypeScript
import { PreviewImageParameters } from "../types.js";
/**
* Reads image data from a file
*/
export declare function readImageData(previewPath: string, verbose: boolean): Promise<Buffer>;
/**
* Reads PP3 content from a file
*/
export declare function readBasePP3Content(basePP3Path: string, verbose: boolean): Promise<string | undefined>;
/**
* Creates a preview image from a RAW file
*/
export declare function createPreviewImage({ inputPath, previewPath, basePP3Path, quality, format, verbose, }: PreviewImageParameters): Promise<boolean>;
/**
* Sets up preview image and validates file access
*/
export declare function setupPreviewAndValidation(inputPath: string, previewPath: string, basePP3Path: string | undefined, previewQuality: number, previewFormat: "jpeg" | "png", verbose: boolean): Promise<{
previewCreated: boolean;
finalBasePP3Path: string;
}>;
/**
* Cleans up preview files if needed
*/
export declare function cleanupPreviewFiles(previewPath: string, previewCreated: boolean, keepPreview: boolean, verbose: boolean): Promise<void>;