Skip to content

Instantly share code, notes, and snippets.

@cherian
Created December 18, 2012 06:38
Show Gist options
  • Save cherian/4325601 to your computer and use it in GitHub Desktop.
Save cherian/4325601 to your computer and use it in GitHub Desktop.
def orientation(self):
exif = self._img._getexif()
if exif is None:
return 0
orientation = 0x0112
return exif.get(orientation, 0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment