I think that near lossless, progressive JPEG XL would work well, once compression algorithms improve. I am _so_ tired of trying to zoom in on a product picture (eg to see what buttons are on a remote or just to read fine print) on E-Stores, only to realize that I need to open in new tab and remove some query paramaters from the URL because they think that people are using 3G but with a computer with a fast CPU (to decode AVIF).
I disagree. Making things slower for everyone due to this edge case is a bad tradeoff. Web APIs exist to let you know when zooming in happens. You can swap to a higher resolution, or even tiled image in these cases if you really care about this use-case.