[Feature] round focal length to nearest integer #698
hegemon2
started this conversation in
Feature request
Replies: 2 comments 2 replies
-
|
The only question I have It's off we want to round the float or just remove the decimals? |
Beta Was this translation helpful? Give feedback.
1 reply
-
|
At the moment #699 removes .00 from the focal length. if focal length is 30.00; display |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have searched the existing feature requests to make sure this is not a duplicate request.
The feature
Focal length in the EXIF overlay displays as e.g. "50.000000mm" instead of "50mm".
Focal lengths are always expressed in whole millimetres, so the decimal places are misleading and cluttered. The Immich API correctly returns a float, but the display formatting in ImageExif() should round to zero decimal places.
The fix is a one-liner in views/views_image-metadata.templ — changing the focal length format verb to %.0f.
Beta Was this translation helpful? Give feedback.
All reactions