Skip to content

Instantly share code, notes, and snippets.


Scott Chen rightson

View GitHub Profile
rightson /
Created Sep 5, 2012 — forked from erans/
Get Latitude and Longitude from EXIF using PIL
from PIL import Image
from PIL.ExifTags import TAGS, GPSTAGS
def get_exif_data(image):
"""Returns a dictionary from the exif data of an PIL Image item. Also converts the GPS Tags"""
exif_data = {}
info = image._getexif()
if info:
for tag, value in info.items():
decoded = TAGS.get(tag, tag)
rightson / app.js
Created Dec 15, 2011 — forked from skypanther/app.js
Draw gridlines in a Titanium window
View app.js
// implement like this:
var window = Ti.UI.createWindow({
// draw the gridlines first so your other elements stack on top of them
// without requiring you to set the z-index property of each
var grid = require('gridlines');
You can’t perform that action at this time.