From 5e05a89acc4dd901e8f54cf93b311ca282b02c6f Mon Sep 17 00:00:00 2001 From: Sindre Sorhus Date: Thu, 12 Mar 2020 00:21:28 +0800 Subject: [PATCH] Document how to convert a sequence of PNG images Fixes #128 --- readme.md | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/readme.md b/readme.md index cda3d3ed..1d5df3ac 100644 --- a/readme.md +++ b/readme.md @@ -60,19 +60,33 @@ xcode-select --install ## FAQ -### The generated GIFs are huge! +#### The generated GIFs are huge! The GIF image format is very space inefficient. It works best with short video clips. Try reducing the dimensions, FPS, or quality. -### Can I contribute localizations? +#### How can I convert a sequence of PNG images to a GIF? + +Install [FFmpeg](https://www.ffmpeg.org/) (with Homebrew: `brew install ffmpeg`) and then run this command: + +``` +TMPFILE="$(mktemp /tmp/XXXXXXXXXXX).mov"; \ + ffmpeg -f image2 -framerate 30 -i image_%06d.png -c:v prores_ks -profile:v 5 "$TMPFILE" \ + && open -a Gifski "$TMPFILE" +``` + +Ensure the images are named in the format `image_000001.png` and adjust the `-framerate` accordingly. + +[*Command explanation.*](https://avpres.net/FFmpeg/sq_ProRes.html) + +#### Can I contribute localizations? We're not interested in localizing the app. -### Can you support macOS 10.13? +#### Can you support macOS 10.13? No, but you can get the last compatible version [here](https://github.com/sindresorhus/Gifski/files/3991913/Gifski.2.4.0.-.High.Sierra.zip). -### Can you support Windows/Linux? +#### Can you support Windows/Linux? No, but there's a [cross-platform command-line tool](https://github.com/ImageOptim/gifski) available.