mirror of
https://github.com/immich-app/immich.git
synced 2025-12-19 09:13:14 +03:00
28 lines
553 B
TypeScript
28 lines
553 B
TypeScript
|
|
import { AssetEntity } from '@app/database/entities/asset.entity';
|
||
|
|
|
||
|
|
export interface IExifExtractionProcessor {
|
||
|
|
/**
|
||
|
|
* The Asset entity that was saved in the database
|
||
|
|
*/
|
||
|
|
asset: AssetEntity;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Original file name
|
||
|
|
*/
|
||
|
|
fileName: string;
|
||
|
|
|
||
|
|
/**
|
||
|
|
* File size in byte
|
||
|
|
*/
|
||
|
|
fileSize: number;
|
||
|
|
}
|
||
|
|
|
||
|
|
export interface IVideoLengthExtractionProcessor {
|
||
|
|
/**
|
||
|
|
* The Asset entity that was saved in the database
|
||
|
|
*/
|
||
|
|
asset: AssetEntity;
|
||
|
|
}
|
||
|
|
|
||
|
|
export type IMetadataExtractionJob = IExifExtractionProcessor | IVideoLengthExtractionProcessor;
|