Skip to content

Instantly share code, notes, and snippets.

Avatar

Scott Chen rightson

View GitHub Profile
@rightson
rightson / get_lat_lng_exif_pil.py
Created Sep 5, 2012 — forked from erans/get_lat_lon_exif_pil.py
Get Latitude and Longitude from EXIF using PIL
View get_lat_lng_exif_pil.py
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
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({
backgroundColor:'#fff'
});
// 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');
grid.drawgrid(10,window);
You can’t perform that action at this time.