views:

622

answers:

2

I have coordinates from some source and want to tag my jpg files with them. What is the best python library for writing geotags into exif data?

+2  A: 

I haven't tried it myself, but from the documentation pyexiv2 looks like it should do the job.

Simon Willison
+1  A: 

pexif was written with geotags as a goal (my emphasis):

pexif is a Python library for parsing and more importantly editing EXIF data in JPEG files.

This grew out of a need to add GPS tagged data to my images, Unfortunately the other libraries out there couldn't do updates and didn't seem easily architectured to be able to add such a thing. Ain't reusable software grand!

My main reason for writing this was to provide an easy way for geo-tagging my photos, and the library now seems mature enough to do that.

gimel