Skip to content

Instantly share code, notes, and snippets.

@RajChowdhury240
Created April 10, 2026 09:33
Show Gist options
  • Select an option

  • Save RajChowdhury240/9ebb1823a04595a48bfecb8e05c84c7d to your computer and use it in GitHub Desktop.

Select an option

Save RajChowdhury240/9ebb1823a04595a48bfecb8e05c84c7d to your computer and use it in GitHub Desktop.

⏺ gifski Usage

From a video file:

Basic: convert video to GIF

gifski -o output.gif video.mp4

Resize to max 640px wide

gifski -o output.gif -W 640 video.mp4

Lower quality for smaller file size

gifski -o output.gif -Q 70 video.mp4

Custom frame rate (default is 20fps)

gifski -o output.gif --fps 10 video.mp4

Speed up the video 2x

gifski -o output.gif --fast-forward 2 video.mp4

From PNG frames:

Sequence of PNGs

gifski -o output.gif frame001.png frame002.png frame003.png

Using a glob

gifski -o output.gif frames/*.png

Control playback speed via fps

gifski -o output.gif --fps 15 frames/*.png

Common combos:

Small, optimized GIF for the web

gifski -o output.gif -W 480 -Q 80 --fps 15 video.mp4

Fastest encode (slightly worse quality)

gifski -o output.gif --fast video.mp4

Best possible quality (slower)

gifski -o output.gif --extra -Q 100 video.mp4

Loop only 3 times (not forever)

gifski -o output.gif --repeat 3 video.mp4

No looping

gifski -o output.gif --repeat -1 video.mp4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment