diff --git a/backend/model/threading/DiskMangerWorker.ts b/backend/model/threading/DiskMangerWorker.ts index 290a0394..e45fb27c 100644 --- a/backend/model/threading/DiskMangerWorker.ts +++ b/backend/model/threading/DiskMangerWorker.ts @@ -54,8 +54,8 @@ export class DiskMangerWorker { const exif = exif_parser.create(data).parse(); metadata.cameraData = { ISO: exif.tags.ISO, - model: exif.tags.Modeol, - maker: exif.tags.Make, + model: exif.tags.Model, + make: exif.tags.Make, fStop: exif.tags.FNumber, exposure: exif.tags.ExposureTime, focalLength: exif.tags.FocalLength, diff --git a/common/entities/PhotoDTO.ts b/common/entities/PhotoDTO.ts index c82658d7..8c9883a2 100644 --- a/common/entities/PhotoDTO.ts +++ b/common/entities/PhotoDTO.ts @@ -26,7 +26,7 @@ export interface ImageSize { export interface CameraMetadata { ISO?: number; model?: string; - maker?: string; + make?: string; fStop?: number; exposure?: number; focalLength?: number; diff --git a/frontend/app/gallery/lightbox/infopanel/info-panel.lightbox.gallery.component.html b/frontend/app/gallery/lightbox/infopanel/info-panel.lightbox.gallery.component.html index 9e403072..68e4c519 100644 --- a/frontend/app/gallery/lightbox/infopanel/info-panel.lightbox.gallery.component.html +++ b/frontend/app/gallery/lightbox/infopanel/info-panel.lightbox.gallery.component.html @@ -26,10 +26,10 @@
- - {{getYear()}} - {{getDate()}} + + ,{{getYear()}} +
{{getDay()}}, {{getTime()}}
@@ -43,7 +43,7 @@
- {{photo.metadata.cameraData.model || "Camera"}} + {{photo.metadata.cameraData.model || photo.metadata.cameraData.make || "Camera"}}
ISO{{photo.metadata.cameraData.ISO}}
@@ -67,9 +67,8 @@
{{getPositionText() || "Position"}}
-
-
+
+
{{photo.metadata.positionData.GPSData.latitude.toFixed(3)}}, {{photo.metadata.positionData.GPSData.longitude.toFixed(3)}}
diff --git a/frontend/app/gallery/lightbox/infopanel/info-panel.lightbox.gallery.component.ts b/frontend/app/gallery/lightbox/infopanel/info-panel.lightbox.gallery.component.ts index a36583e0..5b2b8249 100644 --- a/frontend/app/gallery/lightbox/infopanel/info-panel.lightbox.gallery.component.ts +++ b/frontend/app/gallery/lightbox/infopanel/info-panel.lightbox.gallery.component.ts @@ -1,4 +1,4 @@ -import {Component, Input} from "@angular/core"; +import {Component, ElementRef, Input} from "@angular/core"; import {PhotoDTO} from "../../../../../common/entities/PhotoDTO"; @Component({ @@ -10,7 +10,7 @@ export class InfoPanelLightboxComponent { @Input() photo: PhotoDTO; - constructor() { + constructor(public elementRef: ElementRef) { } calcMpx() { @@ -40,7 +40,7 @@ export class InfoPanelLightboxComponent { getDate() { const date = new Date(this.photo.metadata.creationDate); let locale = "en-us"; - return date.toLocaleString(locale, {month: "long"}) + " " + date.getDay(); + return date.toLocaleString(locale, {month: "long"}) + " " + date.getDate(); } getTime() { @@ -58,7 +58,7 @@ export class InfoPanelLightboxComponent { if (f > 1) { return f; } - return "1/" + Math.ceil(((f < 1.0) ? f : (f % Math.floor(f))) * 10000) + return "1/" + (1 / f); } hasGPS() { diff --git a/frontend/app/gallery/lightbox/lightbox.gallery.component.css b/frontend/app/gallery/lightbox/lightbox.gallery.component.css index 08b19c36..63ff9849 100644 --- a/frontend/app/gallery/lightbox/lightbox.gallery.component.css +++ b/frontend/app/gallery/lightbox/lightbox.gallery.component.css @@ -10,11 +10,9 @@ justify-content: center; /* add to align horizontal */ align-items: center; /* add to align vertical */ cursor: pointer; - transition: all 0.3s ease-in-out; } gallery-lightbox-photo { - transition: all 0.3s ease-in-out; overflow: hidden; } @@ -92,5 +90,7 @@ info-panel { position: fixed; height: 100vh; right: 0; + width: 0; + top: 0; transition: all 0.3s ease-in-out; } diff --git a/frontend/app/gallery/lightbox/lightbox.gallery.component.html b/frontend/app/gallery/lightbox/lightbox.gallery.component.html index c013e606..c9b59d7d 100644 --- a/frontend/app/gallery/lightbox/lightbox.gallery.component.html +++ b/frontend/app/gallery/lightbox/lightbox.gallery.component.html @@ -4,21 +4,24 @@ [style.opacity]="blackCanvasOpacity">
-