Skip to content

Commit

Permalink
Update GH pages using commit 2779d3c
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Feb 4, 2024
1 parent 1a0bf90 commit 07c69c3
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion exif-reader.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion exif-reader.js.map

Large diffs are not rendered by default.

8 changes: 6 additions & 2 deletions src/tag-names-common.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,12 @@ export default {
return 'Unknown';
},
ExposureTime(value) {
if (value[0] >= value[1]) {
return `${Math.round(value[0] / value[1])}`;
if (value[0] / value[1] > 0.25) {
const decimal = value[0] / value[1];
if (Number.isInteger(decimal)) {
return '' + decimal;
}
return decimal.toFixed(1);
}
if (value[0] !== 0) {
return `1/${Math.round(value[1] / value[0])}`;
Expand Down

0 comments on commit 07c69c3

Please sign in to comment.