View source on GitHub

To convert AVIF to GIF, run npx optimo image.avif --format gif. GIF is required for some legacy destinations. Optimo handles format conversion and optimization in a single step.

Command

Convert a file by targeting the output format:

npx optimo image.avif --format gif

Tip: add --dry-run to preview changes.

Why convert?

  • GIF is required for some legacy destinations.
  • Best for simple graphics; photos may suffer.

Format notes

AVIF
High-compression modern image format that can beat WebP on size at similar quality.

Optimize AVIF Compress AVIF Resize AVIF AVIF guide

GIF
Legacy animated image format that is still widely used for simple loops.

Optimize GIF Compress GIF Resize GIF GIF guide