mirror of
https://github.com/immich-app/immich.git
synced 2025-12-24 01:11:32 +03:00
13 lines
395 B
TypeScript
13 lines
395 B
TypeScript
|
|
export const IMediaRepository = 'IMediaRepository';
|
||
|
|
|
||
|
|
export interface ResizeOptions {
|
||
|
|
size: number;
|
||
|
|
format: 'webp' | 'jpeg';
|
||
|
|
}
|
||
|
|
|
||
|
|
export interface IMediaRepository {
|
||
|
|
resize(input: string, output: string, options: ResizeOptions): Promise<void>;
|
||
|
|
extractVideoThumbnail(input: string, output: string): Promise<void>;
|
||
|
|
extractThumbnailFromExif(input: string, output: string): Promise<void>;
|
||
|
|
}
|