Skip to content
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

Incorrect indexing in ExifVersion.Interoperability causes GPSVersionID to be incorrect #102

Open
Timie opened this issue Aug 5, 2022 · 0 comments

Comments

@Timie
Copy link

Timie commented Aug 5, 2022

GPSVersionID would not correctly survive a "roundtrip" JPG -> ExifLibrary.JPGFile -> JPG due to the incorrect indexing of mValue at the following line:

data[i] = byte.Parse(mValue[0].ToString());

E.g. GPSVersionID 2.3.0.0 would end up being 2.2.2.2.

The line should rather be as follows (notice the i instead of 0 in the mValue[i]) :
data[i] = byte.Parse(mValue[i].ToString());

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

No branches or pull requests

1 participant