Quantcast
Channel: magick Discussions Rss Feed
Viewing all articles
Browse latest Browse all 3693

New Post: Writing Exif.GpsInfo data

$
0
0
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:
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);
    }
Any suggestions to what I might be doing wrong?

Viewing all articles
Browse latest Browse all 3693

Trending Articles