1
0
mirror of https://github.com/bpatrik/pigallery2.git synced 2024-12-25 02:04:15 +02:00

Merge pull request #536 from Sean-T-Moore/fix-exposure-display

Fix problem with display of Exposure Value
This commit is contained in:
Patrik J. Braun 2022-09-04 09:59:11 +02:00 committed by GitHub
commit a12188c3e0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -152,7 +152,7 @@ export class MetadataLoader {
if (Utils.isFloat32(exif.tags.ExposureTime)) {
metadata.cameraData = metadata.cameraData || {};
metadata.cameraData.exposure = parseFloat(
parseFloat('' + exif.tags.ExposureTime).toFixed(4)
parseFloat('' + exif.tags.ExposureTime).toFixed(6)
);
}
if (Utils.isFloat32(exif.tags.FNumber)) {

View File

@ -158,7 +158,7 @@ export class InfoPanelLightboxComponent implements OnInit, OnChanges {
if (f > 1) {
return f;
}
return '1/' + 1 / f;
return '1/' + Math.round(1 / f);
}
hasPositionData(): boolean {