# GIF Format & Quality

Sirv automatically serves GIFs as animated WebP images - if the users browser supports WebP - which drastically reduces image file size.

Using an AI coding agent?

Install the [`sirv-dynamic-imaging`](https://www.skills.sh/sirv/image-optimization-skill/sirv-dynamic-imaging) skill, and your agent can build these image URLs for you. Ask in plain words, such as “Serve our product photos as 800px WebP.” [See all 8 skills](/help/rest-api/sirv-skills-for-ai-agents/)

If you specifically require GIF format, you can compress your GIFs with the gif.lossy parameter. Try it in the demo below and compare the file sizes.

Try it

Original

Loading…

With options

Loading…

Format

GIFOptimal (WebP)

GIF lossy50

WebP quality80

https://demo.sirv.com/stretch.gif**?format=gif&gif.lossy=50**

[](https://demo.sirv.com/stretch.gif?format=gif&gif.lossy=50)

The **optimal** format is Sirv’s default format. It will serve the most optimal file format to each user, depending on which formats their browser supports - usually that’s WebP.

You can scale GIFs to any size with the w (width) and h (height) parameters. The other dynamic imaging options (text, watermark, canvas etc) cannot be applied to GIFs.
