
Grab your gear: The official Sanity swag store
Read Grab your gear: The official Sanity swag storeBased on the documentation I reviewed, Sanity's image transformation pipeline does not explicitly list APNG (Animated PNG) among its supported formats.
The image transformations documentation states that transformations are limited to JPEG, PNG, WebP, PJPG, TIFF, AVIF, and GIF. While standard PNG is supported, APNG is not specifically mentioned as a supported animated format.
For animated images, the changelog confirms that as of August 2024, Sanity's Asset CDN supports animated GIF and animated WebP files, which will be transformed and returned as animated images. APNG is notably absent from this list.
Since APNG isn't explicitly supported for transformations, here are your alternatives:
Animated WebP - This is your best bet. It offers similar (often better) compression than APNG, maintains good quality, and is well-supported by Sanity's image pipeline and modern browsers.
Animated GIF - Widely supported everywhere, though it has larger file sizes and limited color palette compared to APNG or WebP.
Upload APNG as-is - You can upload APNG files to Sanity's asset system, but you won't be able to apply transformations like resizing, cropping, or format conversion. The file would be served as originally uploaded.
If you need APNG specifically for your project, I'd recommend converting your animations to WebP format, which gives you the benefits of Sanity's image transformation pipeline (on-the-fly resizing, cropping, CDN delivery, etc.) while maintaining excellent quality and compression. You could also reach out to Sanity's support team to express interest in APNG support if it's important for your use case.
Sanity is the developer-first content operating system that gives you complete control. Schema-as-code, GROQ queries, and real-time APIs mean no more workarounds or waiting for deployments. Free to start, scale as you grow.
Content operations
Content backend


The only platform powering content operations
By Industry


Tecovas strengthens their customer connections
Build and Share

Grab your gear: The official Sanity swag store
Read Grab your gear: The official Sanity swag store