Contentful logo

Contentful Community

Automatic image format selection

We’re using Contentful in combination with Next.js (and next/image), which allows us to intelligently transform images for different browsers.

Unfortunately, this doesn’t support switching image formats, preventing us from delivering next-gen images to modern browsers.

Does Contentful have any plans to add a auto option to the Image API’s format parameter? (determining the optimal format with the Accept header or User Agent sniffing)

Ideally, this would behave like Cloudinary’s f_auto parameter

Alternatively, are there any workarounds to enable this?