TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Create GIFs Using Python

19 pointsby OwnsEover 5 years ago

2 comments

MayeulCover 5 years ago
I&#x27;d suggest using webp over gif. Maybe avif in the future, and APNG is supported in places.<p>With that in mind, you can still create gifs easily with:<p><pre><code> convert *.png animation.gif # optionally use -delay between pngs, or -loop to limit the number of animations ffmpeg -pattern_type glob -i &#x27;*.png&#x27; out.gif # optionally with -framerate N </code></pre> Not sure why anyone would do it in python (again, use something else than GIF if possible), but it&#x27;s cool there is a library for that anyway :)
giancarlostoroover 5 years ago
I also found out you can do this with GIMP with layers, I think you name them a specific way and export as GIF and it does it. Also for Linux users, you can record your screen with Peek and turn it into a gif. Not sure if OBS does gifs wouldn&#x27;t surprise me though.