mirror of
https://github.com/xuthus83/pigallery2.git
synced 2024-11-03 21:04:03 +08: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 {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,
|
||||
|
@ -43,6 +43,6 @@ export interface PositionMetaData {
|
||||
export interface GPSMetadata {
|
||||
latitude?: number;
|
||||
longitude?: number;
|
||||
altitude?: string;
|
||||
altitude?: number;
|
||||
|
||||
}
|
||||
|
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user