Open Timie opened 2 years ago
GPSVersionID would not correctly survive a "roundtrip" JPG -> ExifLibrary.JPGFile -> JPG due to the incorrect indexing of mValue at the following line: https://github.com/oozcitak/exiflibrary/blob/1e0f8381cf9ed1788fd24d9a0ee1b8a7d198abdc/ExifLibrary/ExifExtendedProperty.cs#L216
mValue
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());
i
0
mValue[i]
data[i] = byte.Parse(mValue[i].ToString());
GPSVersionID would not correctly survive a "roundtrip" JPG -> ExifLibrary.JPGFile -> JPG due to the incorrect indexing of
mValue
at the following line: https://github.com/oozcitak/exiflibrary/blob/1e0f8381cf9ed1788fd24d9a0ee1b8a7d198abdc/ExifLibrary/ExifExtendedProperty.cs#L216E.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 of0
in themValue[i]
) :data[i] = byte.Parse(mValue[i].ToString());