geerlingguy / pi-timelapse

Time-lapse app for Raspberry Pi computers.
https://www.jeffgeerling.com/pi-timelapse
MIT License
300 stars 58 forks source link

GIFs aren't animated #23

Open Aariq opened 5 years ago

Aariq commented 5 years ago

First off, thank you for making this script! I'm so excited to get this project going.

I was able to follow your tutorial and run timelapse.py, and I see that it produced a number of images and a gif file, but the .gif seems like it's just a single image. When I run the timelapse.py script, the message Creating animated gif appears before the Time-lapse capture complete! message.

I'm using raspian buster lite on a pi zero w.

Aariq commented 5 years ago

Update: if I switch to using a for loop instead of the threading it works like expected.

geerlingguy commented 5 years ago

Yeah; the gif creation might or might not be working as-is right now. I originally created that in the first iteration of the script, but didn't test it much after I made the changes to use threading... the problem is I'm now mostly using it for very long timelapses (which would take literally days to render into a gif on my poor Pi Zero W), so I haven't really needed to generate gifs anymore.