1
0
mirror of https://github.com/xuthus83/pigallery2.git synced 2024-11-03 21:04:03 +08:00
pigallery2/common/entities/PhotoDTO.ts

33 lines
786 B
TypeScript
Raw Normal View History

import {DirectoryDTO} from './DirectoryDTO';
2018-11-02 17:40:09 +08:00
import {OrientationTypes} from 'ts-exif-parser';
2018-11-05 02:28:32 +08:00
import {MediaDTO, MediaMetadata, MediaDimension, PositionMetaData} from './MediaDTO';
2016-12-28 03:55:51 +08:00
2018-11-05 02:28:32 +08:00
export interface PhotoDTO extends MediaDTO {
id: number;
name: string;
directory: DirectoryDTO;
metadata: PhotoMetadata;
readyThumbnails: Array<number>;
readyIcon: boolean;
2016-12-28 03:55:51 +08:00
}
2018-11-05 02:28:32 +08:00
export interface PhotoMetadata extends MediaMetadata {
keywords: Array<string>;
cameraData: CameraMetadata;
positionData: PositionMetaData;
2018-11-02 17:40:09 +08:00
orientation: OrientationTypes;
2018-11-05 02:28:32 +08:00
size: MediaDimension;
creationDate: number;
fileSize: number;
2016-12-28 03:55:51 +08:00
}
export interface CameraMetadata {
ISO?: number;
model?: string;
2017-07-11 04:00:22 +08:00
make?: string;
fStop?: number;
exposure?: number;
focalLength?: number;
lens?: string;
2016-12-28 03:55:51 +08:00
}