2017-07-10 04:00:42 +08:00
|
|
|
<div class="content">
|
2017-07-18 00:30:16 +08:00
|
|
|
<div class="modal-header">
|
2018-05-14 04:59:57 +08:00
|
|
|
<h2 class="modal-title" i18n>Info</h2>
|
|
|
|
<button type="button" class="close" (click)="close()" aria-label="Close">
|
|
|
|
<span class="oi oi-x" aria-hidden="true"></span>
|
|
|
|
</button>
|
2017-07-10 04:00:42 +08:00
|
|
|
</div>
|
|
|
|
<div class="row">
|
2018-05-14 04:59:57 +08:00
|
|
|
<div class="col-2">
|
|
|
|
<span class="details-icon oi oi-image"></span>
|
2017-07-10 04:00:42 +08:00
|
|
|
</div>
|
2018-05-14 04:59:57 +08:00
|
|
|
<div class="col-10">
|
2017-07-10 04:00:42 +08:00
|
|
|
<div class="details-main">
|
|
|
|
{{photo.name}}
|
|
|
|
</div>
|
2018-05-14 04:59:57 +08:00
|
|
|
<div class="details-sub row">
|
|
|
|
<div class="col-4">{{photo.metadata.size.width}} x {{photo.metadata.size.height}}</div>
|
|
|
|
<div class="col-4">{{calcMpx()}}MP</div>
|
|
|
|
<div class="col-4" *ngIf="photo.metadata.fileSize">{{calcFileSize()}}</div>
|
2017-07-10 04:00:42 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="row">
|
2018-05-14 04:59:57 +08:00
|
|
|
<div class="col-2">
|
|
|
|
<span class="details-icon oi oi-calendar"></span>
|
2017-07-10 04:00:42 +08:00
|
|
|
</div>
|
2018-05-14 04:59:57 +08:00
|
|
|
<div class="col-10">
|
2017-07-10 04:00:42 +08:00
|
|
|
<div class="details-main">
|
2018-05-29 00:03:52 +08:00
|
|
|
{{ photo.metadata.creationDate | date: (isThisYear() ? 'MMMM d': 'longDate')}}
|
2017-07-10 04:00:42 +08:00
|
|
|
</div>
|
2018-05-14 04:59:57 +08:00
|
|
|
<div class="details-sub row">
|
2018-05-28 23:51:52 +08:00
|
|
|
<div class="col-12">{{ photo.metadata.creationDate | date :'EEEE'}}, {{getTime()}}</div>
|
2017-07-10 04:00:42 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="row">
|
2018-05-14 04:59:57 +08:00
|
|
|
<div class="col-2">
|
|
|
|
<span class="details-icon oi oi-camera-slr"></span>
|
2017-07-10 04:00:42 +08:00
|
|
|
</div>
|
2018-05-14 04:59:57 +08:00
|
|
|
<div class="col-10">
|
2017-07-10 04:00:42 +08:00
|
|
|
<div class="details-main">
|
2017-07-11 04:00:22 +08:00
|
|
|
{{photo.metadata.cameraData.model || photo.metadata.cameraData.make || "Camera"}}
|
2017-07-10 04:00:42 +08:00
|
|
|
</div>
|
2018-05-14 04:59:57 +08:00
|
|
|
<div class="details-sub row">
|
|
|
|
<div class="col-3" *ngIf="photo.metadata.cameraData.ISO">ISO{{photo.metadata.cameraData.ISO}}</div>
|
|
|
|
<div class="col-3" *ngIf="photo.metadata.cameraData.fStop">f/{{photo.metadata.cameraData.fStop}}</div>
|
|
|
|
<div class="col-3" *ngIf="photo.metadata.cameraData.exposure">
|
2017-07-10 04:00:42 +08:00
|
|
|
{{toFraction(photo.metadata.cameraData.exposure)}}s
|
|
|
|
</div>
|
2018-05-14 04:59:57 +08:00
|
|
|
<div class="col-3" *ngIf="photo.metadata.cameraData.focalLength">
|
2017-07-10 04:00:42 +08:00
|
|
|
{{photo.metadata.cameraData.focalLength}}mm
|
|
|
|
</div>
|
2018-05-14 04:59:57 +08:00
|
|
|
<div class="col-12" *ngIf="photo.metadata.cameraData.lens">{{photo.metadata.cameraData.lens}}</div>
|
2017-07-10 04:00:42 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2018-05-14 04:59:57 +08:00
|
|
|
<div class="row" *ngIf="hasPositionData()">
|
|
|
|
<div class="col-2">
|
|
|
|
<span class="details-icon oi oi-map-marker"></span>
|
2017-07-10 04:00:42 +08:00
|
|
|
</div>
|
2018-05-14 04:59:57 +08:00
|
|
|
<div class="col-10">
|
2017-07-10 04:00:42 +08:00
|
|
|
<div class="details-main">
|
|
|
|
{{getPositionText() || "Position"}}
|
|
|
|
</div>
|
2018-05-14 04:59:57 +08:00
|
|
|
<div class="details-sub row" *ngIf="hasGPS()">
|
|
|
|
<div class="col-12">
|
2017-07-10 04:00:42 +08:00
|
|
|
{{photo.metadata.positionData.GPSData.latitude.toFixed(3)}},
|
|
|
|
{{photo.metadata.positionData.GPSData.longitude.toFixed(3)}}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2017-07-14 05:39:09 +08:00
|
|
|
<div id="map" *ngIf="hasGPS() && mapEnabled">
|
2017-07-10 04:00:42 +08:00
|
|
|
<agm-map
|
|
|
|
[disableDefaultUI]="true"
|
|
|
|
[zoomControl]="false"
|
|
|
|
[streetViewControl]="false"
|
2017-07-20 04:46:59 +08:00
|
|
|
[zoom]="10"
|
2017-07-10 04:00:42 +08:00
|
|
|
[latitude]="photo.metadata.positionData.GPSData.latitude"
|
|
|
|
[longitude]="photo.metadata.positionData.GPSData.longitude">
|
|
|
|
<agm-marker
|
|
|
|
[latitude]="photo.metadata.positionData.GPSData.latitude"
|
|
|
|
[longitude]="photo.metadata.positionData.GPSData.longitude">
|
|
|
|
</agm-marker>
|
|
|
|
</agm-map>
|
|
|
|
</div>
|
|
|
|
</div>
|