Skip to content

Instantly share code, notes, and snippets.

@yuliji
Created January 15, 2018 09:25
Show Gist options
  • Save yuliji/ce8bfb22f9bd778dee9b779e579117f9 to your computer and use it in GitHub Desktop.
Save yuliji/ce8bfb22f9bd778dee9b779e579117f9 to your computer and use it in GitHub Desktop.
[read exif wand]Read exif from python wand
from wand.image import Image
exif = {}
with Image(filename='wandtests/assets/beach.jpg') as image:
exif.update((k[5:], v) for k, v in image.metadata.items()
if k.startswith('exif:'))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment