I'm having trouble writing Exif GpsInfo to an image.
I've managed to write GPSLatitude and GPSLongitude data, but not GPSVersionID or the GPSLatitudeRef/GPSLongitudeRef.
My code:
Any suggestions to what I might be doing wrong?
I've managed to write GPSLatitude and GPSLongitude data, but not GPSVersionID or the GPSLatitudeRef/GPSLongitudeRef.
My code:
using (var image = new MagickImage(imageFile)) { var profile = new ExifProfile(); profile.SetValue(ExifTag.GPSVersionID, newbyte[] { 0x02, 0x00, 0x00, 0x00 }); profile.SetValue(ExifTag.GPSLatitudeRef, "N"); image.AddProfile(profile); image.Write(imageFile); }