Skip to content

Instantly share code, notes, and snippets.

View ravenscroftj's full-sized avatar

James Ravenscroft ravenscroftj

View GitHub Profile
@maxim75
maxim75 / set_loc.py
Created May 22, 2011 01:07
Setting GPS location EXIF tags using Python script and pyexiv2 library
#!/usr/bin/env python
import pyexiv2
import fractions
from PIL import Image
from PIL.ExifTags import TAGS
import sys
def to_deg(value, loc):
if value < 0: