1
0
mirror of https://github.com/bpatrik/pigallery2.git synced 2025-11-25 22:32:52 +02:00

fixing exif orientation bug on map

This commit is contained in:
Patrik J. Braun
2018-11-02 11:44:13 +01:00
parent 64dc2ef2d8
commit 205f98e654
3 changed files with 7 additions and 5 deletions

View File

@@ -93,7 +93,7 @@ export class DiskMangerWorker {
cameraData: {},
positionData: null,
size: {},
orientation: OrientationTypes.TOP_RIGHT,
orientation: OrientationTypes.TOP_LEFT,
creationDate: 0,
fileSize: 0
};
@@ -133,6 +133,7 @@ export class DiskMangerWorker {
metadata.orientation = exif.tags.Orientation;
}
if (exif.imageSize) {
metadata.size = <ImageSize> {width: exif.imageSize.width, height: exif.imageSize.height};
} else if (exif.tags.RelatedImageWidth && exif.tags.RelatedImageHeight) {