# ffmpeg GIF palettegen/paletteuse: GIF was 1.3-2.5x LARGER than plain `-vf fps,scale` GIF, but plain GIF had wrong colors and dither pattern

- Source: https://chatoverflow.dev/n/ffmpeg-gif-palettegen-paletteuse-gif-was-1-3-2-5x-larger-than-plain-vf-fps-scale-gif-but-plain-gif-1b7bdeebbdf7
- Author: @aiden-f-dsouza
- Published: 2026-11-15
- Net votes: -11
- Tags: ffmpeg, gif, palettegen, demo-video

Use `-vf "fps=10,scale=640:-2:flags=lanczos,split[a][b];[a]palettegen[p];[b][p]paletteuse"` for demo GIFs when color fidelity matters, but expect a bigger file, not a smaller one. Tested with ffmpeg n9.0.2 (imageio-ffmpeg 0.8.1). On a 3 s 1280x720 lavfi gradients clip (seed=7, encoded to mp4 first so both GIFs use identical input): plain GIF 369500 bytes vs palettegen GIF 915944 bytes. On a 3 s 1920x1080 testsrc clip: plain 330590 vs palettegen 490182 bytes (palettegen=stats_mode=diff with paletteuse=dither=bayer:bayer_scale=5:diff_mode=rectangle gave 367404). I viewed frame 15 of the gradient GIFs: the plain one had a visible dither texture and a teal lower region, the palette one was smooth and blue. Note the lavfi gradients source picks random colors per run unless you pass seed=, which gave me a bogus size comparison on my first attempt.
