10 ms·
AVIF support enabled by default in Firefox 86
- cbarrick 6y agoFor context AVIF is to AV1 what WebP is to VP8. It's an image format based on the keyframes of the AV1 video codec.
- sillycon-valley 6y agoAlso, AVIF has support for live photos and animations. WebP afaik has a more limited feature set.
- dheera 6y agoI still use JPEG because I've seen iPhones in the wild that didn't support my WEBP graphics. Thanks Apple for being behind the times.
- BenTheElder 6y agoThis should actually finally be fixed as iOS 14 rolls out, of course there's still IE ... https://css-tricks.com/webp-image-support-coming-to-ios-14/ https://css-tricks.com/webp-image-support-coming-to-ios-14/ https://caniuse.com/?search=webp https://caniuse.com/?search=webp
- foepys 6y agoInternet Explorer is officially unsupported by Microsoft. Nobody should write anything new with support for IE.
- folmar 6y agoMicrosoft claims otherwise: https://docs.microsoft.com/en-us/lifecycle/faq/internet-explorer-microsoft-edge https://docs.microsoft.com/en-us/lifecycle/faq/internet-expl... _Internet Explorer is a component of the Windows operating system and follows the Lifecycle Policy for the product on which it is installed._ Some of their sites are like Office365 will drop support, but only on 2021-08-17.
- hannob 6y agoSo after several years of ignoring a better file format apple will start supporting it when it's already being deprecated by an even better format?
- deleted 6y ago[deleted]
- qwerty456127 6y agoBy the way, doesn't Windows still open WebP in a browser rather than in a picture viewer?
- judge2020 6y agoThe Windows "Photos" app doesn't support webp, at least not without an extension, so it doesn't associate the file extension with the app. Chrome can display these photos, so it registers the webp file extension.
- qwerty456127 6y agoThat's it - webp isn't treated as a first-class picture file format even on Windows. You can hardly expect Apple being more progressive this way.
- Lammy 6y agohttps://www.irfanview.com/plugins.htm#UpdatedPlugins https://www.irfanview.com/plugins.htm#UpdatedPlugins :)
- qwerty456127 6y agoOr https://sourceforge.net/projects/jpegview/ https://sourceforge.net/projects/jpegview/ - slightly less (yet sufficiently) powerful but looks better.
- astrange 6y agoWebP was a bad idea so it's good to not support it. It was released years too early, since they started the incompatible VP9/10 right after.
- zodiakzz 6y agoErm. What kind of logic is that? Are you from a parallel universe where time machines exist?
- astrange 6y agoThey should not have released it without a much longer open comment period, if they expected anyone else to implement it. VP8 had barely just come out of hiding from a private company and hadn't been reviewed. I have known the author of WebP (he previously worked on XviD) and I'm pretty sure it was his pet project.
- ghjuuhhhy 6y agoDoes it auto-play? Can it replace gif?
- afavour 6y agoAny muted video can already auto play, irrespective of format.
- chrismorgan 6y agoThis is not true. Firefox readily supports blocking all video autoplay (Permissions → Autoplay has three choices: Allow Audio and Video; Block Audio; Block Audio and Video), which I gladly use. And I really wish animated images were treated the same, because it’s a bug that they’re not, but a well-entrenched one that’s nigh-impossible to fix.
- oehtXRwMkIs 6y agoIdk, as a user blocking all autoplay sounds great to me.
- chrismorgan 6y agoThatʾs what I said. I was correcting the parent comment that said that you couldnʾt block autoplay of muted videos. I block all video autoplay, and wish I could block animated image autoplay also.
- folmar 6y agoThis is the default, but some media sites have made autoplay videos _the_ next-gen whole page popups, so I gladly switched to block all. It also saves a lot of bandwidth.
- ehsankia 6y agoMaybe this is a stupid request, but I'd like <img> (or maybe the newer <picture> tag) to take a video but with autoplay=true, loop=true, muted=true and controls=false when given a video source
- markdog12 6y agoAnd 10-bit color.
- BlueTemplar 6y agoOnly 10bpc, no provision for better, like PQ ?
- LeoPanthera 6y agoAnd HEIF is to HEVC/h.265. HEIF is the default photo format for iPhones, which virtually guarantees its future success.
- viktorcode 6y agoHEIF is a container with support for different codecs. HEIC is what it's called when it contains HEVC media. AVIF is in fact a HEIF containing AV1. It all boils down to codec support. Past year Apple finally started supporting Google codecs, so Safari gained VP9 and WebP.
- LeoPanthera 6y agoSee, and I knew that, but I still typed HEIF. I'm an idiot. Thanks for correcting me.
- shmerl 6y agoWhat is a good way to generate AVIF from PNG on Debian? I'm trying to use avifenc (Debian testing) and getting this: avifenc test.png test.avif ... Encoding with AV1 codec '(null)' speed [8], color QP [0 (Lossless) <-> 10 (High)], alpha QP [0 (Lossless) <-> 0 (Lossless)], tileRowsLog2 [0], tileColsLog2 [0], 1 worker thread(s), please wait... ERROR: Failed to encode image: No codec available
- devadvance 6y agoI used ImageMagick [0] just now to create a couple test images. magick testimage.png testimage.avif magick testimage.png -quality 60 testimage60.avif [0] https://imagemagick.org/script/magick.php https://imagemagick.org/script/magick.php
- shmerl 6y agoImagemagick that's packaged in Debian doesn't have avif support unfortunately. They somehow split between version 6 and version 7 which is confusing, because both are progressing in parallel but they don't have feature parity. I can try getting version 7.
- devadvance 6y agoAh, I didn't realize that! Looking at this [0] issue thread, it seems like the minimum version with AVIF support is v7.0.25. The suggestion to use Docker in that thread might be useful for you as well, if you are interested in a couple quick tests and are already set up for containers. [0] https://github.com/ImageMagick/ImageMagick/issues/1432#issuecomment-750679801 https://github.com/ImageMagick/ImageMagick/issues/1432#issue...
- canofbars 6y agoI wouldn't recommend using anything in the debian repos if you want a feature newer than 5 years old.
- shmerl 6y ago
- xeeeeeeeeeeenu 6y agoThat may hurt JPEG XL adoption, which is a shame, because it's a much better format.
- zamadatix 6y agoCould you explain how/why?
- nattaylor 6y ago"AVIF is currently better at low image quality. JPEG XL is currently better at medium and high image qualities, including the range of image quality used in the internet and the cameras today." https://encode.su/threads/3397-JPEG-XL-vs-AVIF#:~:text=AVIF%20is%20currently%20better%20at,internet%20and%20the%20cameras%20today https://encode.su/threads/3397-JPEG-XL-vs-AVIF#:~:text=AVIF%....
- shmerl 6y agoHow do they compare from patent encumbrance perspective? AVIF is supposed to be protected by AOM for everyone to use.
- Arkanosis 6y agoThe JPEG XL reference implementation is under the Apache 2 license, which means that it comes with a royalty-free patent grant. So pretty much the same as AVIF (BSD 2 clauses + royalty-free patent grant).
- shmerl 6y agoThat sounds good, but AOM also provides a rather heavy weight protection against patent trolling and similar threats which is a benefit. It's similar to OIN in that sense.
- viktorcode 6y agoReference implementation is irrelevant to the patents which cover the use of underlying codec. The codec might get AOM protection, but then there's always some companies with patents outside of AOM. H.265 debacle with 2 patent holder groups is a good example of that.
- rmccue 6y agoWe went through implementing AVIF support in our image service, only to find out that it generated larger images than WebP anyway. Not sure if that’s typical though.
- lucb1e 6y agoDo you have an example? The F1 image from the post above looks pretty convincing, if you have different data then I'd be curious to see that. For example you say larger images, but what about quality? Was that not better for the larger file size? Part of this is subjective as well (I really mind the non-smooth areas and text artifacts in jpeg, other people might mind other things).
- astrange 6y agoIt's actually pretty easy to fix those artifacts in a JPEG decoder at the cost of making it a little too smooth. The text artifacts are only partially a compression artifact and partially from a poor quality YUV>RGB conversion, so you can do a better one. Blocking artifacts can be reduced with a deblocking filter; JPEG/MPEG1/MPEG2 are so simple it doesn't take much work to guess what was supposed to be there.
- efortis 6y agoIf you are using `avifenc` try with `--speed 0`. If you are doing that, or using `colorist` then tune the quantizer. After experimeting with the quantizer, these are the settings I use for screenshots with text and sharp lines: https://blog.uidrafter.com/engineering/convert-to-avif-programmatically https://blog.uidrafter.com/engineering/convert-to-avif-progr...
- giorgioz 6y agoYes we also try converting images to .avif with the NPM module Sharp version 0.27.0 and we images as large as .webp using the default speed of 5/8 and it takes 10 seconds to encode on the same AWS Lambda of 512mb. I red that increasing the speed to 8/8 will lead to smaller file but the encoding time will take 3 minutes. https://fronius.me/articles/2020-10-14-comparing-image-formats-jpg-webp-avif.html#:~:text=Processing%20speed&text=When%20I%20started%20out%20my,and%20libvips%20(as%20of%208.10 https://fronius.me/articles/2020-10-14-comparing-image-forma...
- nickysielicki 6y agoFor those wondering why they should care about yet another image format: https://jakearchibald.com/2020/avif-has-landed/ https://jakearchibald.com/2020/avif-has-landed/ This is incredible.
- deleted 6y ago[deleted]
- rkagerer 6y agoThe first "At equal file sizes" heading (for the racecar) is telling.
- contravariant 6y agoAlthough he does seem to be comparing images at incredibly high compression rates, to the point that the full sized versions don't look anywhere near acceptable (which is subjective I suppose).
- berkut 6y agoYep, and "quality" isn't always the only control you have, i.e. chroma Sub Sampling is an option for JPEG (and maybe others?) as well, which sometimes has to be played around with in my experience if you really care about high-fidelity JPEGs (i.e. full screen photos). I really wish something existed (or was even built-in to image format encoders in some way, although I recognise that would arguably be bloat) to "bisect" what the optimum settings are per format without degrading quality based off perceptual pixel differences... I've written a basic thing myself I use to work out the chroma sub sampling (whether 444 is needed, or if 422 can be used) for JPEG encoding photos, and it can do a fair level of "quality" bisection as well, but it's far from perfect, but still useful.
- jaffathecake 6y agoSome of the examples use subsampling, some don't, depending on if I felt it needed it visually. From memory, I think I disabled subsampling for all the illustration images. Except in WebP where you can't disable it. For WebP I used its "sharp YUV" mode instead.
- jjcm 6y agoGreat to hear. I hope that this means we'll get some hardware vendors roadmapping encoding support. AV1 is great and will likely replace things eventually, but holy hell encoding is slow right now. At the moment it only seems worth it if you have limited content but immense traffic. There are things I'm really excited about with the format though. The forced 10bit support is a big one. A unified format is also nice (i.e. not having to worry about png for screenshots / jpg for photos). Obviously file size improvements are great too. Overall though the format has a few years to go before it's production worthy except in niche circumstances.
- sedatk 6y agoIt's still not enough: https://caniuse.com/?search=Avif https://caniuse.com/?search=Avif In order to get mainstream adoption, both Safari iOS and Chrome Android need to start supporting it.
- jeroenhd 6y agoI'm not sure if that page is up to date. Firefox for Android and Chrome for Android both seem to support AVIF according to my tests. I'm not sure what "Android browser" means here, but it's been a while since I've seen the built-in browser engines not running on some recent version of Chromium as a base. I don't expect Apple to ever implement AVIF. They have bought into HEIF as the new version of JPEG through licenses and hardware decoding and they're not exactly known of implementing open standards next to their own. Encoding WEBP and AVIF and using the <picture> element on web pages should solve the bandwidth problem without depending on outdated browsers or lacking browser manufacturers. AVIF is better than WEBP in many cases, but WEBP is also better than JPEG or PNG in many places the older formats are still used.
- zamadatix 6y agoI can't get AVIF images to open in the latest Chrome on Android, pages with fallbacks use the fallback as well. My guess is it'll be enabled when AV1 is (which should be soonish now that devices with hardware AV1 decode are starting to be shipped in volume). Apple added AV1 hardware decode support to the A14 so I wouldn't rule it out in the future.
- BlueTemplar 6y ago> I'm not sure what "Android browser" means here, but it's been a while since I've seen the built-in browser engines not running on some recent version of Chromium as a base. Looks like it's the pre-Android 5, non-Chromium, AOSP browser ?
- heavyset_go 6y agoGood luck with that, Safari only started supporting WebP in June. Chrome has supported WebP since 2012.
- cheeaun 6y agoJust wondering, is there a "lossless" conversion from PNG/JPEG/etc to AVIF? Kinda like Lepton[1] but just re-compressing without further loss of details. [1] https://github.com/dropbox/lepton https://github.com/dropbox/lepton
- IAmLiterallyAB 6y agoNot sure about AVIF but JPEG XL has exactly that
- markdog12 6y agoYes, avif has lossless. https://squoosh.app/ https://squoosh.app/ has both avif and jpegxl if you want to try it out.
- JyrkiAlakuijala 6y agoAVIF has pixel-based lossless. AVIF's pixel-based lossless seems not very exciting at first look since it performs worse than WebP lossless. https://www.reddit.com/r/jpegxl/comments/fjddrr/lossless_image_formats_comparison_webp_jpeg_xl/ https://www.reddit.com/r/jpegxl/comments/fjddrr/lossless_ima... AVIF does not support recompression of JPEG files like Lepton, Brunsli, PackJPG, 7zip media layer (using Brunsli), and JPEG XL. AVIF works very well in the high density low-bit-rate compression. The flip side there is loss of detail.
- lgats 6y agoSupported by CloudFlare too https://blog.cloudflare.com/generate-avif-images-with-image-resizing/ https://blog.cloudflare.com/generate-avif-images-with-image-...
- IshKebab 6y agoCan you put an AVIF animation in an img tag? That would be a pretty killer feature that would give you pretty instant adoption. There are still loads of places that force you to use GIF.
- giorgioz 6y agoyes you can put an .avif animation in an <img> tag. https://www.lambdatest.com/blog/avif-image-format/ https://www.lambdatest.com/blog/avif-image-format/ You can also use the <picture> tag to specify multiple images of different types to newer and olders browsers.
- giorgioz 6y agoWe were adding support for .avif images in our backend this week. It seems .avif encoding is very slow right now. It takes 3 minutes to encode an image with the most compressed setting (speed 8/8). Using the default speed 5/8 takes 10 seconds but gives a size practically as big as webp (which takes less time to encode). I think/hope this will likely improve in the upcoming months. https://fronius.me/articles/2020-10-14-comparing-image-formats-jpg-webp-avif.html#:~:text=Processing%20speed&text=When%20I%20started%20out%20my,and%20libvips%20(as%20of%208.10 https://fronius.me/articles/2020-10-14-comparing-image-forma...
- BlueTemplar 6y agoJust like any other format, it's pretty much dead in the water outside of desktop until it gets implemented in hardware (hopefully, without the encumbering patents, ASAP!)
- markdog12 6y agohttps://squoosh.app/ https://squoosh.app/ will let you encode avif and jpegxl if you want to test out your images.