Remix.run Logo
bjord 2 days ago

are you using webp photos?

theandrewbailey 2 days ago | parent | next [-]

WebP isn't enough of an improvement to justify the overhead of supporting it for me. AVIF is twice as efficient as JPEG, and has 97+% support across browsers. Use <picture> for JPEG fallback.

https://caniuse.com/?search=avif

https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/...

daemonologist 2 days ago | parent | prev | next [-]

webp is not much of an upgrade in my experience - jpegli pretty much matches it in quality/size while having better compatibility, and if you don't have the original photo and are working with old crusty jpegs it's often best to just leave them alone rather than re-encoding. jpeg-xl does make a noticeable difference, but it's not widely supported.

gruturo 2 days ago | parent | prev [-]

Webp is utter garbage. Awful quality loss, which they're still in denial of, for minimal size gains over a jpeg encoded with modern software (which is also way way more compatible - software from 35 years ago can open it). But I'm sure it scores well in whatever flawed perceptual benchmark they automated.

If only google didn't oppose jxl - but they'd have to implicitly admit that webp is garbage and they don't like doing that.

acdha 2 days ago | parent [-]

WebP produced good file size reductions because they recompressed JPEGs and ignored the loss in detail. I benchmarked it the day it launched and it was never once competitive enough to be worth the cost of using it. If browsers had supported JPEG-2000 in the 2000s, it’d have stomped WebP on every benchmark – even a tuned JPEG encoder did surprisingly well given the age of that format.

HEIC, AVIF, JXL, etc. are worth the trouble.