mirror of
https://github.com/bpatrik/pigallery2.git
synced 2024-11-28 08:58:49 +02:00
fixing test error
This commit is contained in:
parent
81c3b6bca0
commit
a0985bebe6
@ -1,11 +1,10 @@
|
|||||||
///<reference path="../exif.d.ts"/>
|
|
||||||
import {DirectoryDTO} from "../../../common/entities/DirectoryDTO";
|
import {DirectoryDTO} from "../../../common/entities/DirectoryDTO";
|
||||||
import {CameraMetadata, GPSMetadata, ImageSize, PhotoDTO, PhotoMetadata} from "../../../common/entities/PhotoDTO";
|
import {CameraMetadata, GPSMetadata, ImageSize, PhotoDTO, PhotoMetadata} from "../../../common/entities/PhotoDTO";
|
||||||
import {Logger} from "../../Logger";
|
import {Logger} from "../../Logger";
|
||||||
import * as fs from "fs";
|
import * as fs from "fs";
|
||||||
import * as path from "path";
|
import * as path from "path";
|
||||||
import {IptcParser} from "ts-node-iptc";
|
import {IptcParser} from "ts-node-iptc";
|
||||||
import * as exif_parser from "exif-parser";
|
import {ExifParserFactory} from "ts-exif-parser";
|
||||||
import {ProjectPath} from "../../ProjectPath";
|
import {ProjectPath} from "../../ProjectPath";
|
||||||
import {Config} from "../../../common/config/private/Config";
|
import {Config} from "../../../common/config/private/Config";
|
||||||
|
|
||||||
@ -51,7 +50,7 @@ export class DiskMangerWorker {
|
|||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const exif = exif_parser.create(data).parse();
|
const exif = ExifParserFactory.create(data).parse();
|
||||||
metadata.cameraData = <CameraMetadata> {
|
metadata.cameraData = <CameraMetadata> {
|
||||||
ISO: exif.tags.ISO,
|
ISO: exif.tags.ISO,
|
||||||
model: exif.tags.Model,
|
model: exif.tags.Model,
|
||||||
|
@ -43,6 +43,6 @@ export interface PositionMetaData {
|
|||||||
export interface GPSMetadata {
|
export interface GPSMetadata {
|
||||||
latitude?: number;
|
latitude?: number;
|
||||||
longitude?: number;
|
longitude?: number;
|
||||||
altitude?: string;
|
altitude?: number;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -29,12 +29,12 @@
|
|||||||
"body-parser": "1.17.2",
|
"body-parser": "1.17.2",
|
||||||
"cookie-session": "^2.0.0-beta.2",
|
"cookie-session": "^2.0.0-beta.2",
|
||||||
"ejs": "2.5.6",
|
"ejs": "2.5.6",
|
||||||
"exif-parser": "^0.1.11",
|
|
||||||
"express": "4.15.3",
|
"express": "4.15.3",
|
||||||
"flat-file-db": "1.0.0",
|
"flat-file-db": "1.0.0",
|
||||||
"jimp": "0.2.28",
|
"jimp": "0.2.28",
|
||||||
"mysql": "2.13.0",
|
"mysql": "2.13.0",
|
||||||
"reflect-metadata": "0.1.10",
|
"reflect-metadata": "0.1.10",
|
||||||
|
"ts-exif-parser": "^0.1.23",
|
||||||
"ts-node-iptc": "^1.0.8",
|
"ts-node-iptc": "^1.0.8",
|
||||||
"typeconfig": "1.0.4",
|
"typeconfig": "1.0.4",
|
||||||
"typeorm": "0.0.11",
|
"typeorm": "0.0.11",
|
||||||
|
Loading…
Reference in New Issue
Block a user