News for hackers. Stuff that matters.
Re:AVIF Has Landed by ksec on Tuesday September 08, 2020 @05:50PM (#24413899)
While AV1 has high complexity and requires a lot more computation power to decode, AVIF picture is essentially just 1 Frame. At the bitrate used with Internet pictures, I would assume decoding power wouldn't be a problem even on Smartphone.

Cant wait to see how it compares to JPEG-XL.

I think we can forget about WebPv2 which is just VP9. I dont see its value when we have AVIF already.

Re:AVIF Has Landed by jaffathecake on Wednesday September 09, 2020 @12:03AM (#24416984)
WebPv2 isn't just vp9. It has many features that target image delivery on the web. I think it's worth waiting and seeing what it's like.
Re:AVIF Has Landed by Eek on Tuesday September 08, 2020 @07:42AM (#24407421)
This is awesome! Love the equal size comparison. I've wrote a few years ago an article about BPG which also had support for animation - https://eek.ro/why-bpg-will-replace-gifs-and-not-only/

Does AVIF have any support for animations?

Glad to finally see an royalty-free format starting to get traction.

Re:AVIF Has Landed by jaffathecake on Tuesday September 08, 2020 @07:43AM (#24407429)
Yeah, AVIF supports animations, but I haven't tried it yet, and don't know the state of implementations. In general, I'm not that excited by anim-image formats, I just go for the video format in that case.
Re:AVIF Has Landed by Eek on Wednesday September 09, 2020 @08:47AM (#24420375)
Yeah, MP4s are the tool to go now, especially since you can autoplay them almost anywhere (I'm looking at you Apple).

But still, we still can't use them in mail yet. So having an image to play is definitely interesting - for email - for now.

Re:AVIF Has Landed by colejohnson66 on Tuesday September 08, 2020 @05:35PM (#24413733)
Doesn’t PNG technically support animation, too? It’s just that no one implements it?
Re:AVIF Has Landed by jaffathecake on Wednesday September 09, 2020 @03:21AM (#24418238)
It's pretty well supported https://caniuse.com/apng
Re:AVIF Has Landed by colejohnson66 on Wednesday September 09, 2020 @09:37AM (#24420833)
Interesting. I remember (a few years ago) finding out about them through Wikipedia and that I would need a Chrome extension to use them (they had an example). So, I installed it to view it, but I never saw any other usage of it outside of that page/article.

I guess there’s not really much space savings[0] over an animated GIF even with an optimized PNG and max compression. It does explain why WebP is replacing GIF though[a]: being a video format, it can compress much better.

Off topic: Is YouTube still using VP8? Or have they switched to AV1 (the basis of AVIF)?

[0]: https://corydowdy.com/blog/apng-vs-webp-vs-gif

[a]: The popular GIF sharing site Giphy actually uses WebP if your browser supports it. Otherwise just browsing their site would use hundreds of megabytes (which isn’t good for mobile users with a data cap)

Re:AVIF Has Landed by npunt on Tuesday September 08, 2020 @05:16PM (#24413485)
> 'Effort' 10 (which I used for images in this article) can take over 10 minutes to encode a single image.

Well, there's always a trade-off.

Re:AVIF Has Landed by karmakaze on Tuesday September 08, 2020 @05:05PM (#24413372)
The WebP at near the same size as AVIF preserved more of the dark road texture, but for the more saturated parts the AVIF had more edge detail. I'd like to see more examples to see what types of detail/textures AVIF favors dropping vs line edge details it preserves.
Re:AVIF Has Landed by jaffathecake on Wednesday September 09, 2020 @12:03AM (#24416990)
Try it with your own images on Squoosh.app
Re:AVIF Has Landed by kreetx on Wednesday September 09, 2020 @08:36AM (#24420306)
Here's something related from the same author https://www.youtube.com/watch?v=F1kYBnY6mwg ("Image compression deep-dive")
Re:AVIF Has Landed by kreetx on Tuesday September 08, 2020 @10:15AM (#24408574)
How is this made to work in browsers that don't support avif yet (i.e firefox)?

edit: Is it WebAssembly drawing on a canvas?

Re:AVIF Has Landed by jaffathecake on Tuesday September 08, 2020 @10:19AM (#24408619)
Yep! The end of the article covers some of the details.