Support JPEG XL (JXL) file format for attachments/embeds

Use case or problem

I would like to make use of some of my JPEG files which have been converted into JPEG XL format for better compression.

This would currently only really be beneficial to local vaults, not ones published online as JPEG XL isn’t widely supported on the web compared to some other more modern formats, such as WebP.

Proposed solution

Support both lossy and lossless JXLs.

Current workaround (optional)

Losslessly convert JXLs back into JPG format. Webp is an option, and maybe eventually AVIF too.

Related feature requests (optional)

Thanks.

3 Likes

This is unlikely to happen until there is widespread browser/OS support. AVIF is more likely.

1 Like

I recently discovered JPEG XL myself and wanted to use them here, but yeah, the web’s not catching up as fast as we’d like. Support for both lossy and lossless JXLs would be spot-on! Meanwhile, I’ve been doing this weird dance of converting JXLs back to JPG for now. It works, but it’s not the most convenient. Have you guys used a JPEG optimizer to compress image? Super handy! Maybe it could be part of our workaround toolbox?

3 Likes

+1 for jxl format support.

3 Likes

I think its time to revisit this request. JXL is the modern file format I would like to use in Obsidian. :sparkles:

2 Likes

For sure, JXL is super useful now and the more things that support it the more likely it will start being used elsewhere too. Even if its just for our local Obsidian JXL will help keep file sizes lower and quality higher.

1 Like

+1 for JPEG XL

I would also appreciate JXL support! I realize it’s still not very widespread but Firefox supports it with with an optional flag and I use it to store all my photos and screenshots.