48 points

This is the first I’ve heard of the JPEG XL format, but it sounds pretty good!

Hopefully it doesn’t get misused by websites to mangle lossless compressed images with so much compression they’re barely visible to save a few kilobytes, though.

permalink
report
reply
21 points
*

What is the point of this format? How is it any better than png or webp? Do we really need yet another format? I mean 44k really isn’t that great of a savings in the example used.

permalink
report
reply
178 points
*

A shortlist:

  • it has the best lossy image compression (not counting extremely low bitrate images, where AVIF starts to win)
  • it can losslessly recompress JPEGs for a free 20% space savings - no image quality loss
  • it supports parallel decoding for extra speed
  • it supports progressive decoding (viewing a lower quality version of the image while it loads), unlike WebP/AVIF which just “pop up” when you’ve downloaded the whole thing
  • it supports lossless
  • it compresses lossless extremely well (notably unlike AVIF and PNG which fall on their face with lossless compression)
  • it supports animation (though AVIF is generally a better format for animation, because it’s based on a proper video codec)
  • it supports HDR
  • it has a very strong resilience against generation loss (the classic “JPEG degradation” of resaving images)
  • it is royalty-free
  • it otherwise has roughly every image format feature we’ve ever thought of included in its spec

If JXL is not the next image format then we will never ever get rid of JPEG and PNG. There has never been a more obviously superior image format in history.

This might help: Image format comparison table

permalink
report
parent
reply
58 points

I think you forgot a pretty crucial point, that it is also royalty free. Royalty would be a huge problem.

I have yet to see a general royalty free image format as feature complete and up to date as IFF was for the Amiga back in 1985. From your list, Jpeg XL would finally even surpass that. As a very feature complete format improving on at least 3 formats (GIF PNG JPG)while wrapping them into 1. The only thing missing, is to become universally supported.

I wonder how the Chrome team managed to test it so poorly they claimed it wasn’t worth it? Just the versatility alone should make it a no-brainer.

permalink
report
parent
reply
30 points
*

I think you forgot a pretty crucial point, that it is also royalty free.

I’ll go back and add it - there’s a lot of great stuff that I didn’t mention just for brevity. The biggest royalty concern is HEIC atm, which is basically a nonstarter. I’m not sure how the licensing on the other free formats compares against JXL.

I wonder how the Chrome team managed to test it so poorly they claimed it wasn’t worth it? Just the versatility alone should make it a no-brainer.

Make no mistake, it was a political killing. They didn’t kill it because of perceived performance, they killed it ahead of their public benchmarks because of “lack of interest”. Their cited lack of interest was determined after only a few months of the format going live behind opt-in experimental flags, and once they made their original decision, just about every large tech company spoke up in favor of JXL against Google’s decision on their bugtracker, including Adobe, Intel, Nvidia, Facebook, Shopify, and Flickr. Google still plugged their ears and pretended no one was interested.

Google is trying to push WebP (2.0?) and AVIF, and using their browser marketshare to kill JXL and make that happen. Why they went through all this trouble to kill a format that they themselves co-developed, I really have no idea. I follow JXL relatively closely and I still am not 100% sure why they went through with this. All I know is that the decision was politically-motivated, and without applying political/ecosystem pressure they’re not going to change their minds with data.

Edit: by the way, the last few comments still trickling in on that bugtracker are a great read, especially #406. #406 reads so similarly to my comment I’m surprised I didn’t write it, haha.

permalink
report
parent
reply
12 points

This is truly amazing tbh.

permalink
report
parent
reply
7 points

ironic this image is in a PNG lol

permalink
report
parent
reply
3 points

It’s very slow on high compression profiles though, and consumes a lot of resources.

permalink
report
parent
reply
7 points
*

You don’t need to use the high compression profiles to get good performance though. If you have a usecase where you are resource limited you should stick to effort levels 5-7 for very little loss in quality, or even 3-4 for lightning quick speed (the default is effort 7). Reference this benchmark against AVIF for effort values vs. speed (SSIMULACRA 2 is a deterministic psychovisual metric - higher is better).

Also, an important consideration in this realm is that JXL makes really clever use of variable-DCT (how big a chunk is) and adaptive quantization (what quality should be used for that chunk), allowing “quality levels” that you specify to be much more visually consistent across every image, instead of other codecs that make some images look bad at quality level 90 and some images look good at level 70. This allows you to select a consistent quality level and lower your encoding effort to compensate, instead of needing to always drive a high quality+effort level to account for every region in a picture looking good.

(If you want a slightly deeper dive into JXL’s performance, this is a concise post on various metrics)

permalink
report
parent
reply
-4 points

Graph conveniently omits hardware support, where avif (av1) is supported across the board

permalink
report
parent
reply
10 points
*

No one uses hardware decoding for images - it’s just not a good fit for the reality of how we use images. Images are small and easy to decode, whereas starting up a hardware decoder takes a non-trivial amount of time. Additionally, GPU decoders only work single-threaded, so each image would have to be decoded one by one, instead of all at once like with CPU decoding. This was already attempted with VP8/WebP and they gave up trying to make it any good. Videos are good candidates for hardware decoding since they’re large and you’re only looking at one at a time.

If you have benchmarks or some proof showing otherwise by all means post here.

permalink
report
parent
reply
1 point

Funny enough, JXL is supported anywhere you have a general purpose CPU, which is anything consumer with a GUI!

permalink
report
parent
reply
26 points

JPEG XL provides comparable image quality to ordinary JPEG compression at around 80% of the file size. It also supports lossless encoding at smaller sizes than PNG, and can handle layers, transparency and CMYK, so in principle it could conveniently replace almost every existing raster image format.

permalink
report
parent
reply
13 points

So I agree with your sentiment for the most part. Mainly, it’s frustrating to see all of these new image standards come out which somehow compete with each other due to lack of browser support.

That said 44k isn’t peanuts. That’s a huge reduction, especially on lower end connection speeds.

permalink
report
parent
reply
11 points
*
Deleted by creator
permalink
report
parent
reply
11 points

The article discusses how it’s better than webp. Specifically, it’s much better at both compression ratios and performance, at all quality levels. WebP has problems where the compression falls off due to being locked to yuv420

permalink
report
parent
reply
7 points

It is when you’re a cloud hosting platform and you have 1000’s of photos uploaded daily. That 44k saving scales massively when talking about cloud hosting platforms. The jpeg xl format license is more open than webp which is controlled by google.

The new format also enables more features than just file size, a quick google shows it supports animation, 360 photos, and image bursts (as well as more technical specifics that allow for better share ability without needing to have an accompanying json file or dropping to RAW).

This is more important because it means websites can embed photos and the web engine whether it be chromium, Firefox, or safari can handle it natively without needing JavaScript or some other intermediary.

What about png? It’s just another competing standard. At the end of the day it doesn’t really matter, but by not having competing standards we end up having one company controlling it. So since at the very least it gives a decent file size saving it’s good enough for me.

permalink
report
parent
reply
2 points

Even better, this must be fantastic when you’re training AI models with millions of images. The compression level AND performance should be a game changer.

permalink
report
parent
reply
2 points

Hmm, I haven’t delved into image training in a couple years so I’m assuming they still downscale images anyway, so I’m not sure how much the format helps? Do you know if better compression helps at lower resolution? I could see it helping but I could also seeing it be marginal gains and depending on processing time it might not be worth it to convert whole image sets to jpeg xl. And for performance does jpeg xl require less power/time to decode than other formats? Maybe for new image sets going forward it will be the standard.

permalink
report
parent
reply
10 points

there’s a graph in there that only has 1 axis labeled

permalink
report
reply
7 points

The compression is just that good, bro.

permalink
report
parent
reply
1 point

Which graph is that? I only see this one, which has all axes labeled.

permalink
report
parent
reply
1 point

I thought that was just the organization making the graph

permalink
report
parent
reply
6 points

I am going crazy or was this not posted a few days ago?

permalink
report
reply
10 points

I am not crazy it was posted 3 days ago with the same title. Why? https://lemm.ee/post/1629469

permalink
report
parent
reply
12 points

I guess it’s hardly surprising it would have the same title, considering it’s the title of the article. Just a case of someone not seeing the first post before sharing it again, kind of natural.

Maybe eventually users could be given a warning of the sort “This link has already been posted in this community. Are you sure you want to share it?”.

permalink
report
parent
reply

Repost bots are on Lemmy now

permalink
report
parent
reply
9 points

I assure you I am not a repost bot. I saw the article on hackernews and thought it was worth sharing

permalink
report
parent
reply
2 points

For the no karma? For pushing the format?

permalink
report
parent
reply
4 points

JPEG XL sound interesting. Maybe I missed it but why did Google drop support?

permalink
report
reply
11 points

The TLDR summary is that AVIF was going to be the next generation standard for image formats but when JPEG-XL released with a near identical feature-set, better quality compression, and backwards compatibility with JPEG, the tech world put its support behind JPEG-XL.

Naturally, Google as one of AVIF’s creators was unhappy that the standard they control looks like it will lose the format war and so they decided to use their web monopoly to kill JPEG-XL in the cradle by killing support for it in Chrome around a few months ago.

While this has slowed JPEG-XL’s momentum by a lot, even the other co-creators of AVIF like Apple, Meta, and Microsoft are still putting their support behind JPEG-XL and it seems like they would rather force JPEG-XL adoption themselves than go back to AVIF.

permalink
report
parent
reply

Technology

!technology@lemmy.world

Create post

This is a most excellent place for technology news and articles.


Our Rules


  1. Follow the lemmy.world rules.
  2. Only tech related content.
  3. Be excellent to each another!
  4. Mod approved content bots can post up to 10 articles per day.
  5. Threads asking for personal tech support may be deleted.
  6. Politics threads may be removed.
  7. No memes allowed as posts, OK to post as comments.
  8. Only approved bots from the list below, to ask if your bot can be added please contact us.
  9. Check for duplicates before posting, duplicates may be removed

Approved Bots


Community stats

  • 18K

    Monthly active users

  • 11K

    Posts

  • 502K

    Comments