Skip to content

Instantly share code, notes, and snippets.

@lukaskollmer
Created May 21, 2016 13:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lukaskollmer/e6b0a7ffab8a8e5d7ae48b8bef481cd0 to your computer and use it in GitHub Desktop.
Save lukaskollmer/e6b0a7ffab8a8e5d7ae48b8bef481cd0 to your computer and use it in GitHub Desktop.
Add legacy functions to the photos module
import photos
def pick_an_image(show_albums=False, include_metadata=False, original=True, raw_data=False, multi=False):
assets = photos.get_assets()
return photos.pick_asset(assets, multi=multi).get_image()
photos.pick_image = pick_an_image
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment