Skip to content
AstroPaper
Go back

Cloudinary JXL demo

Edit page

This image-hi is delivered entirely by Cloudinary. The <picture> element below offers JXL, AVIF, and WebP sources, with a WebP <img> as the floor. No JPEG fallback. Sharp is not invoked.

Demo image served from Cloudinary in JXL, AVIF, and WebP.

Verify in the browser

After pnpm build && pnpm preview, open the post and run:

document.querySelector("picture img")?.currentSrc;

Expected substrings by browser:

jxl files can be handled by both Chrome and Firefox by setting a flag , for Firefox, in the address bar type about:config, accept the warning, search for jxl and enable it. Chrome uses chrome://flags/ , search for jxl to enable it.

You should never see f_jpg — there is no JPEG source.

Demo image served from Cloudinary in JXL, AVIF, and WebP. Describe the image. Me and the wife

Edit page
Share this post:

Previous Post
The future is now
Next Post
AstroPaper 6.0