Cadey is coffee
<Cadey> Hello! Thank you for visiting my website. You seem to be using an ad-blocker. I understand why you do this, but I'd really appreciate if it you would turn it off for my website. These ads help pay for running the website and are done by Ethical Ads. I do not receive detailed analytics on the ads and from what I understand neither does Ethical Ads. If you don't want to disable your ad blocker, please consider donating on Patreon or sending some extra cash to xeiaso.eth or 0xeA223Ca8968Ca59e0Bc79Ba331c2F6f636A3fB82. It helps fund the website's hosting bills and pay for the expensive technical editor that I use for my longer articles. Thanks and be well!

I need help with AVIF files on iOS 16 Safari

Read time in minutes: 1

hero image happy-fireworks-pagodas

Image generated by Waifu Diffusion v1.2 -- a beautiful landscape, studio ghibli, hatsune miku, fuji-san, cherry blossoms, pagoda, bubble tea, happy fireworks, ornate composition, matte painting

Hey there. I'm having some problems with AVIF files on iOS 16. If you're reading this from an iPhone running iOS 16 you may see the problem.

I recently started using a new program called uploud to automate converting and uploading things like my hero images and slides to Backblaze B2, my storage provider. However, images that I make with github.com/Kagami/go-avif won't load on iOS 16 Safari. Here are the encoding settings I am using:


&avif.Options{
	Threads: runtime.GOMAXPROCS(0),
	Speed:   0,
	Quality: 48,
}

This creates images that can be viewed in Chrome:

But not on iOS 16:

What am I doing wrong? I get no useful debug information from the browser inspector on Safari. It just says the image is wrong but won't tell me why.

Please contact me if you have any ideas.


This article was posted on M09 13 2022. Facts and circumstances may have changed since publication Please contact me before jumping to conclusions if something seems wrong or unclear.

Tags: avif ios16 apple ios

The art for Mara was drawn by Selicre.

The art for Cadey was drawn by ArtZora Studios.

Some of the art for Aoi was drawn by @Sandra_Thomas01.