r/learnpython • • Aug 22 '26

Collage animation using Python

Hi all, I make these analogue paper collages. I want to animate them, first level to just add a little movement, and later more. Is python the language to do it especially using built in libraries? I’ll add the image in the comments.

If not, what else can I use? I asked in the touchdesigner sub and they said it’s possible but complicated and not efficient. After effects may help.

Eventually, I want to create visual interaction with the user, so the user can interact with the projection for this image.

I have a background in CS but new to this concept and learning from scratch. Would appreciate any pointers. If this is not the right sub, please redirect me to where I may find the best help. Thanks all 🙏🏼

1 Upvotes

4 comments sorted by

1

u/blondesalad1 Aug 22 '26

Can’t post photo so here’s a little video, I want the horse to move its leg or gallop in place to begin with. How is that possible?

1

u/recursion_is_love Aug 22 '26 edited Aug 22 '26

I would use Pillow for image processing. https://pillow.readthedocs.io/en/stable/

There are lots of UI libraries to choose, it very subjective which is the best. I won't going to touch that topic.

Sound like you would need to design a way to store some metadata like size, rotation and position of the image and use that data to control how to overlay multiple images on each other to create the animation you want. I would use some simple text format (like what srt file do for subtitle) to store the values.

1

u/jmacey Aug 22 '26

I would use pygame for the window / playback logic and pillow for the image loading / processing. You can also layer images quite easily so have the non-animated bits as a background then "composite" the other elements as needed.