Skip to content

Use floatval() instead of intval() to avoid improper coord values #73

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Feb 11, 2019

Conversation

maltehuebner
Copy link
Contributor

On my php 7.2 machine exif coord values for latitude and longitude were rounded to improper values.

Correct: 52.268676666667,10.510951666667
Wrong: 52.266666666667,10,5

I changed intval() to floatval() in both mappers and all values are computed as excepted.

@Miljar Miljar merged commit 41f23db into PHPExif:master Feb 11, 2019
@Miljar
Copy link
Collaborator

Miljar commented Feb 11, 2019

Thx for your PR. I totally overlooked it :(

@maltehuebner maltehuebner deleted the fix-coords branch February 11, 2019 15:04
@maltehuebner
Copy link
Contributor Author

Thanks!

@maltehuebner
Copy link
Contributor Author

@Miljar Would you please publish another release with this fix?

@Miljar
Copy link
Collaborator

Miljar commented Jul 16, 2019

@maltehuebner done!

@maltehuebner
Copy link
Contributor Author

@Miljar Thank you!

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

Successfully merging this pull request may close these issues.

2 participants