GIF Format & Quality
Short answer
Sirv serves GIFs as animated WebP images to browsers that support WebP, which makes them much smaller. If you need the GIF format itself, compress it with the gif.lossy parameter. You can resize GIFs with w and h, but other options, such as text, watermarks and canvas, don't apply to GIFs.
After reading this you will know
- How Sirv makes GIFs smaller automatically
- How to compress a GIF and keep the GIF format
- Which image options work on GIFs
Sirv automatically serves GIFs as animated WebP images - if the users browser supports WebP - which drastically reduces image file size.
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.
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.
