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:
commit
a12188c3e0
@ -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)) {
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user