Skip to content
This repository has been archived by the owner on Aug 10, 2024. It is now read-only.

Rounding values #22

Open
Annushkaaaaa opened this issue Jan 29, 2024 · 5 comments
Open

Rounding values #22

Annushkaaaaa opened this issue Jan 29, 2024 · 5 comments

Comments

@Annushkaaaaa
Copy link

How to run this lib with -n tag? I don't want to round my values

@AerisG222
Copy link
Owner

Hello,

This is not possible today. I can look at adding this in the future when I find some time.

@Annushkaaaaa
Copy link
Author

Don't close the issue please, just after fix this problem :-)

@AerisG222
Copy link
Owner

It's been a while since I looked at this, and think I may have lied yesterday - sorry! It currently works by having exiftool dump out json which is then parsed in to Tag objects. I think what you are looking for is the "NumberValue" property on the Tags that are returned. When I add -n, exiftool only dumps the detailed value and looses the formated version that is currently in 'Value'. As it could be useful to have the friendly 'Value' or the detailed 'NumberValue' I am not planning on making any changes to support specifying -n, as it is effectively already working.

Please have a look to make sure what you need is coming back in NumberValue, and if not, please provide an example photo and what is expected.

Thanks!
Mike

@Annushkaaaaa
Copy link
Author

Hi. At the moment, using your library, I see that the values are rounded and I cannot get the "raw" numbers. For example, one of the parameters is equal to 1.7856901324568, and it is rounded up to 1.8. I would like to be able to get the full value, but not by default, but by setting some option.

@Annushkaaaaa
Copy link
Author

I checked, what option I need - it is print conversion. Could you please add it to this library?
In what way would this affect the conversion of json to Tag object? The values of some parameters will just become a bit larger, there will be no other changes. Currently the values are rounded and this may not be convenient, so I would like to be able to enable no rounding and get the data in raw format.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants