Remix.run Logo
▲ jaffathecake 5 hours ago

OH WAIT. I KNOW WHAT'S HAPPENING HERE.

You're looking at it in a browser that doesn't support JPEG XL, so it's falling back to a WASM renderer, and I think it handles resizing differently.

This is totally my bad. I thought I was doing a good thing by adding that fallback renderer, but it isn't identical and it's giving people the wrong impression.

The lossless version is JPEG XL, hence the difference to AVIF.

▲mkesper an hour ago | parent | next [-]

I also feel like sometimes the lossless image 'sticks' even after having released the button. Don't know how to reliably test that, though.

▲CodesInChaos an hour ago | parent | prev | next [-]

In Firefox 157.0.1, the right border of the image moves by a pixel or two when I press "hold for lossless" while viewing the AVIF. I think it's the lossy AVIF that's a bit too small.

▲jaffathecake an hour ago | parent [-]

That's what I'm talking about. JXL support landed in 158.

▲CodesInChaos an hour ago | parent [-]

But why does missing JXL support make the AVIF too small? It ends one pixel before the gray background.

▲eviks 4 hours ago | parent | prev [-]

by the way, why not convert everything to png for comparisons to avoid browser support issues?

▲jaffathecake 3 hours ago | parent [-]

All browsers support AVIF and JPEG XL now. I was hoping to keep their download size benefits.

▲D2OQZG8l5BI1S06 3 hours ago | parent [-]

Firefox added support only 3 days ago! And this doesn't cover the ESR version.

▲jaffathecake an hour ago | parent [-]

Sure but this is a technical post aimed at a technical audience.