Skip to content
Back to Changelog

Automatic image formats based on browser support

Storage file previews and Avatars screenshots can now pick their output format automatically. Appwrite checks which image formats the browser says it supports and returns AVIF when it can, WebP next, and otherwise the original format for previews or PNG for screenshots. One preview URL now gives Chrome, Edge, and Firefox AVIF and Safari WebP, with no separate URL per format.

SDKs that download image bytes in native and server apps don't name a specific format, so they keep getting the original. Each browser caches its own format, and Appwrite caches every format separately. Previews that ask for a specific format work as before. It's live on Appwrite Cloud now.