Created
May 21, 2016 13:16
-
-
Save lukaskollmer/e6b0a7ffab8a8e5d7ae48b8bef481cd0 to your computer and use it in GitHub Desktop.
Add legacy functions to the photos module
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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