omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular

    Welcome!

    This is the community forum for my apps Pythonista and Editorial.

    For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.


    Opening Pictures with PIL

    Pythonista
    photos module pillow pil python 3
    2
    2
    1589
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Loimeee
      Loimeee last edited by

      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 1 Reply Last reply Reply Quote 0
      • cvp
        cvp @Loimeee last edited by

        @Loimeee try

        import photos
        assets = photos.get_assets()
        asset = photos.pick_asset(assets=assets)
        pil_image = photos.get_image()
        pil_image.show() 
        
        1 Reply Last reply Reply Quote 0
        • First post
          Last post
        Powered by NodeBB Forums | Contributors