Skip to content

v0.3.0

Choose a tag to compare

@lassejlv lassejlv released this 21 Nov 13:00
· 11 commits to main since this release

What's new

  • Much smaller animated GIFs: frames are now delta-encoded, so each frame after the first stores only what changed. Animations with static areas shrink dramatically (an 800×600, 36-frame blue-noise sphere went from 2.3 MB to 250 KB); GIFs where every pixel changes stay about the same size.
  • dith animate --max-size 2MB: set a file-size budget (500KB, 1.5MiB, or bytes). dith shrinks the frame dimensions, keeping frame count and fps, until the output fits, and reports size_fit_scale in the JSON.
  • Motion is documented: dith list generators --json now has a motion field describing what each pattern does when animated.
  • Temporal stability is documented: dith list algorithms --json now has temporally_stable. With --temporal locked, ordered screens, blue-noise, ign, and random keep static pixels identical; error-diffusion algorithms still shimmer around moving content.
  • Cleaner procedural highlights: the sphere's highlight now rolls off smoothly instead of clipping into a flat white patch.
  • Skill docs updated for all of the above.

Behavior change

With --preset, procedural sources (generate, animate <pattern>, compare --pattern, preview --pattern) now skip the preset's photo preparation (auto-levels, contrast, sharpen), which clipped clean gradients. Pass those flags explicitly to get the old behavior. Output for these commands differs from v0.2.0.

Install / update

curl -fsSL https://raw.githubusercontent.com/lassejlv/dith/main/install.sh | bash
# or
dith update