- Use Peek, or some other (as close to lossless as possible) screen recorder, ideally in webp
- Extract frames with ffmpeg
- Optionally, round corners using
round-corners.sh
- Use the following to get a 40fps 600px wide looping APNG:
ffmpeg -r 40 -i frames/%*.png -plays 0 -vf scale=600:-1 demo.apng