Files
dahyeon c8be78de15 Updates FFmpeg handling for platform-aware execution
Switches to platform- and architecture-specific FFmpeg binaries and dynamically resolves executable paths to improve cross-platform compatibility.

Standardizes code style to use consistent double quotes.

Corrects naming inconsistencies and ensures executables have proper permissions on startup.

Enhances maintainability and reliability for image conversion across environments.
2025-11-15 00:00:59 -08:00

17 lines
508 B
TypeScript

export type ImageFormat = "avif" | "webp" | "jpeg";
export interface ConversionOptions {
width: number;
format: ImageFormat;
}
export interface ConversionResult {
buffer: Buffer;
format: ImageFormat;
width: number;
}
export declare class FFmpegConverter {
private getTempFilePath;
convert(inputBuffer: Buffer, options: ConversionOptions): Promise<ConversionResult>;
private executeFFmpeg;
getContentType(format: ImageFormat): string;
}
//# sourceMappingURL=ffmpeg.d.ts.map