Especially for animated images. Comparing webp or avif sizes to gif is easily a factor of five to ten when animated.
Especially for animated images. Comparing webp or avif sizes to gif is easily a factor of five to ten when animated.
Encoding is a pain, to be sure; I ended up creating a workflow where my source would save things as PNG files (giant, but lossless) then running a avifenc (https://github.com/AOMediaCodec/libavif) to produce the avif, and trashing the PNG.
Decoding though, all browsers have support, it's great.
I don't delete my original source images, in case if I want to change the encoder parameters later, or if a newer encoder version improves quality.
Which is HUGE since it allows you to embed them wherever you can embed images. I'm still mad that browser vendors didn't just allow silent looping videos in <img> tags instead of giving us these animated image formats with weirdly gimped non-keyframe compression.