Skip to content

GIF Format & Quality

By , Customer Success DirectorUpdated

Open this page in a new chat

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.

Try it
Original

Loading…

With options

Loading…

50
80
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.

Back to top