1
0
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:
Braun Patrik 2017-07-18 23:27:14 +02:00
parent 81c3b6bca0
commit a0985bebe6
3 changed files with 4 additions and 5 deletions

View File

@ -1,11 +1,10 @@
///<reference path="../exif.d.ts"/>
import {DirectoryDTO} from "../../../common/entities/DirectoryDTO";
import {CameraMetadata, GPSMetadata, ImageSize, PhotoDTO, PhotoMetadata} from "../../../common/entities/PhotoDTO";
import {Logger} from "../../Logger";
import * as fs from "fs";
import * as path from "path";
import {IptcParser} from "ts-node-iptc";
import * as exif_parser from "exif-parser";
import {ExifParserFactory} from "ts-exif-parser";
import {ProjectPath} from "../../ProjectPath";
import {Config} from "../../../common/config/private/Config";
@ -51,7 +50,7 @@ export class DiskMangerWorker {
}
try {
const exif = exif_parser.create(data).parse();
const exif = ExifParserFactory.create(data).parse();
metadata.cameraData = <CameraMetadata> {
ISO: exif.tags.ISO,
model: exif.tags.Model,

View File

@ -43,6 +43,6 @@ export interface PositionMetaData {
export interface GPSMetadata {
latitude?: number;
longitude?: number;
altitude?: string;
altitude?: number;
}

View File

@ -29,12 +29,12 @@
"body-parser": "1.17.2",
"cookie-session": "^2.0.0-beta.2",
"ejs": "2.5.6",
"exif-parser": "^0.1.11",
"express": "4.15.3",
"flat-file-db": "1.0.0",
"jimp": "0.2.28",
"mysql": "2.13.0",
"reflect-metadata": "0.1.10",
"ts-exif-parser": "^0.1.23",
"ts-node-iptc": "^1.0.8",
"typeconfig": "1.0.4",
"typeorm": "0.0.11",