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.


    Saving PIL images to an animated GIF

    Pythonista
    2
    3
    2952
    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.
    • upwart
      upwart last edited by upwart

      I am trying to save a couple of PIL images into a GIF with something like

            img[0].save('test.gif',
               save_all=True, append_images=img[1:])
      

      This works well on a Windows machine, but on Pythonista, it seems to save only the first image,in other words, not animated.

      Does this have to do with the version of PIL?

      Is there a workaround?

      1 Reply Last reply Reply Quote 0
      • JonB
        JonB last edited by JonB

        people have used images2gif successfully.
        https://forum.omz-software.com/topic/2052/gif-art-in-python

        PILlow in pythonista is version 2.9. append_images was added in like 3.4-

        1 Reply Last reply Reply Quote 0
        • upwart
          upwart last edited by upwart

          @jonb
          Thanks for pointing me in the direction of images2gif. That seems to work, but it is painfully slow. Pity Pythonista does not include a more recent version of PIL(low).

          @omz
          Please update Pythonista to a more recent version of PIL(low).

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Powered by NodeBB Forums | Contributors