104 points AshleysBrain 1 hour ago 48 comments
dorianmariecom 1 hour ago | parent
theandrewbailey 1 hour ago | parent
AVIF is still better at 1 bit per pixel and less. Is it possible for JPEGXL to beat that?
gcr 53 minutes ago | parent
xx_ns 59 minutes ago | parent
I think JXL is a cool image format, but was being held back by the most popular browser not supporting it, limiting its use (in the web especially) by a lot.
innocent_name 30 minutes ago | parent
https://security.snyk.io/vuln/?search=libjxl
I remember Project Zero cautioning Google's browser team against adding insecure decoders/encoders.
dncornholio 6 minutes ago | parent
https://developer.chrome.com/blog/jpeg-xl-in-chrome#safety_f...
Synaesthesia 58 minutes ago | parent
sylware 57 minutes ago | parent
apopapo 51 minutes ago | parent
mrob 48 minutes ago | parent
How? Line-based loading is a very simple way to exploit 2D spatial coherence. A 1D format like gzip loses this advantage for minimal gain in simplicity.
pmarreck 24 minutes ago | parent
And lossless jpeg-xl exceeds your idea
swiftcoder 55 minutes ago | parent
Google set to deprecate JPEG XL support in Chrome 110 - https://news.ycombinator.com/item?id=33399940
JPEG XL support has officially been removed from Chromium - https://news.ycombinator.com/item?id=33933208
Chrome Jpegxl Issue Reopened - https://news.ycombinator.com/item?id=46033330
The case agains JPEG XL - https://news.ycombinator.com/item?id=49690554
YesThatTom2 47 minutes ago | parent
My guess: the engineers didn’t win the argument. The executives just gave up once all the other browsers had added support.
pwg 44 minutes ago | parent
The big turning point seemed to have been Adobe adopting JpegXL as an approved image compression algorithm for the upcoming PDF spec. update. With that, since all browsers seem to also want to be PDF renderers, meant they had no choice but to include a JpegXL decoder. The win, if there was one here, was that the decoder they have to ship anyway now was exposed for use by <img> tags as well as by the PDF renderer.
pmarreck 27 minutes ago | parent
etatester 10 minutes ago | parent
nikanj 17 minutes ago | parent
kelseydh 46 minutes ago | parent
E.g. Telegram still doesn't have sane support for .webp, it treats them as stickers. MacOS can take a long time to update with support for new formats. Image viewer apps even longer, many never updating to support new formats.
AlienRobot 34 minutes ago | parent
weinzierl 32 minutes ago | parent
Nothing is perfect and niche formats will always be necessary but I think JPEG XL has a good chance to become the USB of image formats.
cubefox 16 minutes ago | parent
The format is designed to as general as possible, potentially replacing many common (JPEG, GIF, PNG) and professional image formats.
For example, JPEG XL supports pages (e.g. for comic books), layers (with variable frame sizes, positions and blend modes) and timed animations.
shevy-java 15 minutes ago | parent
I have not read that many direct comparisons here.
pmarreck 30 minutes ago | parent
Other than the complexity of its implementation, there is very-little-to-no business nor technical reason not to use it or include it.
It has every right to be "the" image format for the next 20-odd years. Excellent compression, excellent lossless mode, transparency, etc. etc.
And probably my favorite feature- progressive rendering, which means you never have to make thumbnails ever again, you just truncate the output stream at the right proportion of pixel data (!)
iOS also now supports it natively for the photos it takes... but only if you have a newer iPhone than mine (a 15 Pro Max).
Gormo 28 minutes ago | parent
The Linux/FOSS world kind of approximates this just because applications are often built against the same underlying libraries and utilities, e.g ImageMagick or FFMpeg, rather than implementing their own import/export filters, but it'd be nice to be able to install a single system-wide datatype library for a specific format, and have all of my existing software instantly be able to read and write it.
etatester 17 minutes ago | parent
cyberrock 38 minutes ago | parent
tniemi 36 minutes ago | parent
etatester 14 minutes ago | parent
boutell 28 minutes ago | parent
But Safari (MacOS or iOS) still doesn't support the progressive rendering shown here, nor animation, if caniuse is up to date:
Not to be a downer — it's one necessary step on the road.
tepmoc 24 minutes ago | parent
pmarreck 22 minutes ago | parent
perhaps use .ll.jxl to indicate "lossless jpegxl" informally?
prior art: I've been using .frontmatter.md or .fm.md for markdown files with frontmatter
AshleysBrain 6 minutes ago | parent
shevy-java 16 minutes ago | parent
The main two contenders were .avif and .webp. For a few reasons, I selected .avif and in hindsight I think it was the better, choice. Both would be objectively better than jpg or png.
With JPEG XL ... hmmm. AVIF is not perfect, in particular when the compression rate is very high I noticed that some photos lose a lot of intrinsic quality that is not instantly obvious; I noticed this when I took various pictures over the years from outdoors. Still, AVIF beats jpg and png just about on every metric when compression is required. With JPEG XL I guess I have to re-evaluate, but right now I am still sticking to avif. The two factors that will be important for me is compression ratio and quality. I am ok with a bit of loss of quality, if the compression is better, but I am not sure JPEG XL beats AVIF here clearly either, so I am not sure what to do with JPEG XL.
revolvingthrow 14 minutes ago | parent
The wider ecosystem support is still far from commonplace, but it is slowly changing. iOS 18 wouldn't work with .jxl in Photos, but 27 does. Similarly, quick look and preview works fine on MacOS 27, thumbnails show up properly etc. I also found no issues with .jxl on linux, and image editors are slowly adding support as well.
Plain old jpg will still be everywhere for the next decade, but I'm glad that we finally have superior options with no real downsides, and without all the patent bullshit to boot.
ohyashae 10 minutes ago | parent