garyhouston / exif44

Exif44 is a Go library for encoding and decoding Exif metadata in JPEG and TIFF files.
MIT License
4 stars 0 forks source link

Example Geotag? #1

Closed kaihendry closed 7 years ago

kaihendry commented 7 years ago

Would be nice to see an example of a JPEG being set with a GPS latitude/longitude information.

garyhouston commented 7 years ago

I'd like to do that, since as well as being a good example, I do it occasionally with Exiftool. As well as formatting the data into the right fields, there are various cases such as files with a GPS IFD already present, GPS IFD not present, and the entire Exif block not present.

garyhouston commented 7 years ago

I added exif44addloc, although it's a bit on the complex side. Some of the stuff its doing should probably be moved into library functions.