Comment #5 on issue 378 by
jabron...@gmail.com: Support interlaced webp images (and better document lack of support in the meantime)
https://bugs.chromium.org/p/webp/issues/detail?id=378#c5(((
I don't think it's possible that the <plastic-image> custom element is affecting the decode process. All it's doing is deferring the loading of an image until the user has scrolled it into view. It does this regardless of the image format, so comparing results with a webp image vs. a png should be an apples-to-apples comparison. Once an image starts loading, the decode process itself should not be affected.
That being said, let's rule this out by comparing what happens when loading standalone images.
)))
I observe this behavior clearly when I load the following webp and png versions of the same image in Chrome, while keeping the Developer Tools open to the Network tab, and choosing the "Slow 3G" preset:
https://linktag.co/static/masthead-bg-lp.png (652270 bytes)
https://linktag.co/static/masthead-bg-lp.webp (368968 bytes)
The png version starts showing something useful -- a pixelated version of the final image -- almost immediately, and then progressively refines the image over the next ~15 seconds until it finishes loading.
The webp version shows nothing for over 9 seconds until the image is fully loaded, and then displays it all at once.
Are you able to reproduce this behavior? (Tip: You can append any new value for the "v" query string parameter to try loading an image again while making sure caches are bypassed, e.g.
https://linktag.co/static/masthead-bg-lp.webp?v=123. Ticking the "Disable cache" checkbox in the Developer Tools seems to be flaky.)
---
As an experiment, I tried generating a new webp version of this image from the png. The result is only 45730 bytes, which is not big enough to observe progressive loading while using the "Slow 3G" preset. But if you add a new "Custom" preset with a download speed of only 100 kb/s and try loading it, you should see it takes about 5 seconds to load, but with this version you see row-based updates:
https://linktag.co/static/foo.webpI'm not sure why this smaller version of the image shows row-based updates but the larger version does not. To create the smaller webp version, I ran `convert masthead-bg-lp.png foo.webp` using ImageMagick version 7.0.7-28 Q16 x86_64 2018-03-25, installed via homebrew, along with homebrew webp version 0.6.1. I am observing this behavior using Chrome Version 65.0.3325.181 (Official Build) (64-bit) on macOS 10.12.6.
---
In any case, I think the proposal in this bug's title -- Support interlaced webp images (and better document lack of support in the meantime) -- should still be done. I'm glad to hear there may be room for interlace support in a future codec. I suggest the docs update about current lack of support not wait for that.