| ▲ | aniviacat 9 hours ago |
| > Progressive rendering (which AVIF supports) decodes a low-fidelity rendition before the full image arrives. AVIF didn't support progressive rendering for a while, and during that time I believe it was deeply oversold. Now that libavif has implemented it (it was always possible), the conversation appears to be over. This is false. AVIF does not support progressive decoding/rendering. What the author is referring to here is image layering. A lower resolution image layered below the full resolution image, which is loaded and rendered first. That is not progressive decoding/rendering. It is a thumbnail. Unlike AVIF's false advertising, JXL truly supports progressive decoding/rendering. With JXL, you do not first load a thumbnail before loading the actual image. The lower-quality image that JXL shows while decoding is derived from the data of the actual, full-resolution image. |
|
| ▲ | juliobbv 8 hours ago | parent | next [-] |
| > A lower resolution image layered below the full resolution image, which is loaded and rendered first. I'm curious, where did you learn progressive AVIF works like this? Have you actually read the spec, or does your understanding comes from somewhere/someone else and never challenged the truthfulness of it? Progressive AVIF is truly "progressive" -- it never involves "loading a thumbnail" or "layering an image over another". In reality, each pass (up to 4) can refine previous ones (thanks to AV1's inter-encoding toolset), avoiding storing redundant information between passes. The viewing environment doesn't need to render a given pass if a subsequent one has already been downloaded. Finally, scaling is configurable -- you can have your first pass already be at full res, just at a lower quality. Hope this helps clarify how progressive AVIF actually works under the hood. |
|
| ▲ | derf_ 8 hours ago | parent | prev | next [-] |
| > A lower resolution image layered below the full resolution image, which is loaded and rendered first. Unlike a thumbnail, higher-resolution layers can be predicted from the lower-resolution layer, so those bits are not wasted. That is not possible by layering <img> elements. |
|
| ▲ | brigade 8 hours ago | parent | prev | next [-] |
| You're wrong. AVIF does support spatial layering where the full-resolution image is derived from the lower-resolution layer, and cannot be decoded independently. Yes, the format is not inherently progressive. But having the fine steps in progressive quality that JPEG-2000 and JPEG-XL have has less general usefulness than the amount of words complaining about it. |
| |
| ▲ | lgkrnkglwn 4 hours ago | parent | next [-] | | Jpeg2000 (and jpeg ls and jpeg xr) thankfully wasn’t implemented in any major way. Keep it simple, stupid. | |
| ▲ | F3nd0 8 hours ago | parent | prev [-] | | Can a similar technique be employed in JPEG XL, or does the format not allow for it in any way? |
|
|
| ▲ | computerbuster 8 hours ago | parent | prev | next [-] |
| Not sure if the difference is materially relevant to UX at all. JPEG XL achieves progressive rendering at a great cost to its selection of coding tools, so I side with AVIF's approach. |
|
| ▲ | edflsafoiewq 9 hours ago | parent | prev | next [-] |
| Does the difference matter? |
| |
| ▲ | oofdere 8 hours ago | parent | next [-] | | Yes, if you look at the demo, the "progressive" AVIF loads a visible image at 8.5KB, and at that point, it looks better than the progressive JXL. However, that is ALL the AVIF shows until the image has fully loaded. At around 98KB, the JXL looks significantly better, and at around 240KB already looks really close to the final image, while the AVIF still looks terrible. At 280KB when the AVIF finally loads, they look identical. | | |
| ▲ | juliobbv 7 hours ago | parent | next [-] | | BTW, you can configure the AVIF encoder to have another in-between pass or two so the quality jump isn't as big. The JXL folks just happened to go with only two total passes. | | |
| ▲ | oofdere 7 hours ago | parent [-] | | Won't that increase the total size of the image for each pass? | | |
| ▲ | juliobbv 7 hours ago | parent [-] | | Thanks to AV1's inter encoding, overhead is overall minimal as each pass can refine on previous ones. Think of it as a mini-video. Because of this, in the case of images with a lot of repeated patterns, progressive AVIF encoding can actually result in more efficient images! | | |
| ▲ | oofdere 7 hours ago | parent [-] | | Looking at the demo linked in the blog post, I can make a similar quality thumbnail for a smaller size than the delta between the static and progressive AVIFs | | |
| ▲ | juliobbv 7 hours ago | parent [-] | | The quick answer is: you can have up to four passes. With progressive AVIF, you let the browser avoid rendering previous passes if a subsequent one has already been downloaded. It's more efficient and saves battery. |
|
|
|
| |
| ▲ | F3nd0 8 hours ago | parent | prev | next [-] | | Which sounds very useful if your connection is slow enough to make use of progressive image decoding. (Often enough the case for me.) | |
| ▲ | jaffathecake 5 hours ago | parent | prev [-] | | I prefer the UX of the AVIF example here. I think it's better to have a progressive phase where the image is obviously "not ready", yet you can still determine important details like the subject of the image (unlike a blurhash), rather than a phase that you could mistake for complete, but looks bad in parts. |
| |
| ▲ | cpburns2009 8 hours ago | parent | prev | next [-] | | Progressive rendering is just a different way to layout the pixel data. Embedding a thumbnail is storing two distinct images. In other words, progressive rendering should be more efficient space and bandwidth-wise. | | |
| ▲ | edflsafoiewq 8 hours ago | parent [-] | | The DC coefficients in a progressive JPEG are literally an embedded thumbnail (a 1:64 copy of the original) right? Is the question if the second "layer" replaces the thumbnail or layers corrections on top of it? It wasn't clear to me which AVIF does. |
| |
| ▲ | tacomagick 8 hours ago | parent | prev | next [-] | | Of course it does, with one you have to render twice and store two layers which costs you both compute and storage. With the other you can just take the image mid decode at a point and display it. Single decode operation, no layer mess. | | |
| ▲ | charcircuit 8 hours ago | parent [-] | | You have to render twice and have 2 different layers in both scenarios. Writing to a buffer / layer is not an atomic operation so they need to be separated. |
| |
| ▲ | aniviacat 8 hours ago | parent | prev [-] | | The difference matters, as it means that AVIF's "progressive decoding" serves no technical benefit and is only a minor ergonomic benefit: On a website, you could achieve the same effect simply by layering two <img> elements on top of each other, one with the thumbnail and one with the final image. If layering to <img> elements is fine for your use case, then it simply means you have no need for progressive decoding. |
|
|
| ▲ | MiroslavPokorny 8 hours ago | parent | prev [-] |
| How does progressive rendering actually that most OS GUIS are not multithreaded ? The preview in finder is still going to block. Im saying this as a MAC user speaking of experience browsing mounted drives that sometimes are slow and it feels like the window freezes up. |
| |
| ▲ | brigade 7 hours ago | parent | next [-] | | Thumbnailing happens in a background process and shouldn’t block the main thread; rather hangs are usually because fetching xattr over SMB is slow and Finder will block until it’s enumerated the metadata of every file in a folder. Preview actually does use progressive rendering for large enough images, even from SSDs. You can tell because opening an image will be blurry for several seconds, even when the full size image could have been decoded in a quarter second or less. | |
| ▲ | wmf 8 hours ago | parent | prev [-] | | Progressive rendering is intended for the Web and it does work. |
|