Forum Archive

Opening Pictures with PIL

Loimeee

So I just wanted to open a picture, manipulate it and then do some other things. But how do I actually open a picture with PIL, because I want to load it out of my Photos and I‘ve also seen, that I can do that with the photos module that comes with Pythonista. But I can‘t pass that asset or image on to PIL, it always says AttributeError: read.
Thanks already

cvp

@Loimeee try

import photos
assets = photos.get_assets()
asset = photos.pick_asset(assets=assets)
pil_image = photos.get_image()
pil_image.show()