File size: 517 Bytes
1322628 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
export interface ImageFile {
id: string;
file: File;
preview?: string;
status: 'pending' | 'queued' | 'processing' | 'complete' | 'error';
error?: string;
originalSize: number;
compressedSize?: number;
outputType?: OutputType;
blob?: Blob;
}
export type OutputType = 'avif' | 'jpeg' | 'jxl' | 'png' | 'webp';
export interface FormatQualitySettings {
avif: number;
jpeg: number;
jxl: number;
webp: number;
}
export interface CompressionOptions {
quality: number;
} |