# Convert HEIC to GIF

To convert HEIC to GIF, run `npx optimo photo.heic --format gif`. GIF is still required for some legacy workflows. Optimo handles format conversion and optimization in a single step.

## Command

Convert a file by targeting the output format:

```
npx optimo photo.heic --format gif
```

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

## Why convert?

- GIF is still required for some legacy workflows.
- Best for simple graphics; photos are usually better as JPEG/WebP/AVIF.

## Format notes

**HEIC**  
A common camera output format (especially Apple devices) with efficient compression.

- [Optimize HEIC](/content/optimize/heic/index.html)  
- [Compress HEIC](/content/compress/heic/index.html)  
- [Resize HEIC](/content/resize/heic/index.html)  
- [HEIC guide](/content/formats/heic/index.html)

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

- [Optimize GIF](/content/optimize/gif/index.html)  
- [Compress GIF](/content/compress/gif/index.html)  
- [Resize GIF](/content/resize/gif/index.html)  
- [GIF guide](/content/formats/gif/index.html)
