Unlock seamless workflows and faster delivery with our latest releases – get the details
Back to changelog

Sanity Asset CDN now supports animated images

Animated image assets (like .gif and .webp files) uploaded to Sanity will now be transformed and returned as animated rather than static images. To maintain the previous behavior of loading static images from the asset pipeline, please add frame=1 as a query argument to the image URL. This will only return the first frame of the animated image file.

The maximum limit is 256 megapixels ((width x height x frame count) / 1,000,000). If your animated file exceeds this limit, we'll return the first frame. In most cases, if your animated images are large, you might want to use proper video formats and/or consider plugins like Mux.

Documentation affected by this release

Published August 12, 2024