While AVIF may have a slight edge in some cases like in fairly lossy compression, you won't really go _wrong_ with JPEG XL (unless strongly CPU constrained) and I think the strength of the format is its extreme versatility as a "be all end all image format" for some time where comparative performance depending on functionality ranges from respectable to excellent. It can work as a replacement for AVIF, PNG, JPEG, WebP, even certain TIFF required scenarios (high bit depth, multichannel, layers) depending on use cases.
Shipping JPEG XL in Chrome (developer.chrome.com)
jug 8 hours ago
binaryturtle 6 hours ago
ezfe 6 hours ago
smaudet 6 hours ago
PNG/JPEG have strong support (nearly everywhere). I think of them almost as the modern TIFF - relatively simple, and almost everything supports one or both of them (few to no issues).
JXL may eventually get there (that indeed seems to be its goal), but for now I wouldn't drop e.g. PNG or JPEG support in favor of JXL now.
And arguably, perhaps never drop support; its such a prevalent format, even if all software (prevalent or otherwise) supports the format in 10 years, there will be such a huge stockpile of JPEG/PNG that something will need to be used to read/convert.
spider-mario 6 hours ago
TIFF is not simple at all. There is a joke that it stands for “Thousands of Incompatible File Formats”.
legitster 5 hours ago
Even if JXL is superior in every single way, it doesn't make sense to throw out a perfectly functional graphics package and design language for a marginal bump in capability.
Arnt 4 hours ago
For me now, its marginal.
For a past customer, not at all. That customer really cared about delivering image-heavy pages quickly. There was a fairly big difference in customer perception at a timing threshold.
BHSPitMonkey 4 hours ago
Gigachad 20 minutes ago
RobotToaster 6 hours ago
reaperducer 20 minutes ago
The bees and reindeer visiting my web site will be very happy to see UV images.
Gigachad 17 minutes ago
copperx 6 hours ago
groundzeros2015 6 hours ago
VanTheBrand 6 hours ago
Mistletoe 5 hours ago
xp84 5 hours ago
WebP and AVIF and HEIC had similar advantages but also some disadvantages (honestly chief disadvantage to WebP in my humble opinion was that nothing except web browsers -- to this day -- seem to support it!).
Another important point in its favor is that JPEG XL is designed as a royalty‑free, open standard, and Google provides a perpetual, worldwide, royalty‑free patent license for its reference implementation.
Avoiding JXL (once the rollout is sufficiently complete) seems, to me, like still shipping (non-animated) .GIF files where .PNG is better and smaller.
UberFly 2 hours ago
tormeh 5 hours ago
sam1714 2 hours ago
Things in these categories have colorful packaging with spot colors, metallic inks, coatings, as well as store displays with carefully designed lighting. The added cost is justified because it increases sales. It makes sense to carry that over online.
throw0101a 4 hours ago
Even if it cannot, getting the same quality as 'classic' JPEG in fewer bits is still useful. So you have:
* better quality in the same number of bits
* same quality in fewer bits
Dylan16807 4 hours ago
sroussey 4 hours ago
But I’m sure there are some that will say 64k of RAM is all anyone will ever need!
badatnames 3 hours ago
Gigachad 22 minutes ago
skybrian 5 hours ago
Broiler9437 4 hours ago
asddubs 5 hours ago
kccqzy 4 hours ago
[0]: https://github.com/dropbox/lepton And Lepton is dead.
Broiler9437 4 hours ago
Gigachad 18 minutes ago
JPEG XL is marketed as a high end format for photographers and already has support in most editing software.
asddubs 4 hours ago
legitster 5 hours ago
Meanwhile, there's a lot of modern music that takes full advantage of quality gear, but is basically unlistenable on bad speakers.
There's nothing wrong with either approach, but if you're not trying to raise the bar why not just stick with the lowest common denominator?
reaperducer 23 minutes ago
Dean Martin recorded his records to sound good on low-end tween girl 1960's record players. My wife has one, and his stuff sounds great on it.
My wife also has two very high-end modern record players. Dean's old records sound like crap on that.
Master the media for the method.
j2kun 5 hours ago
tech-ninja 3 hours ago
Which I think it might be one of the reasons why Instagram still uses JPG for their images. The rule of thumb is that if your product is picture quality sensitive (like photos in IG) then use JPG, if not then WebP is fine since the compression is higher.
xigoi 2 hours ago
throawayonthe 9 minutes ago
nomel 2 hours ago
xigoi 2 hours ago
Denatonium 33 minutes ago
As a test, I have a set of 36 old MS paint Drawings, originally drawn on Windows 98SE, originally saved in bitmap format with a total size of 53.4 MB.
Transcoded to PNG format using FFmpeg and the highest -compression_level of 100, this same set of images takes up 403.8 kB.
Transcoded to -lossless WebP format using FFmpeg and libwebp with the maximum -quality value of 100 and maximum -compression_level of 6, the set of images takes up 174.8 kB.
Transcoded to lossless JPEG XL format using cjxl in the highest compression settings, the 36 images only takes up 126.6 kB.
Given the computing power required to decode JPEG XL images and their limited support, it may not make sense to use JPEG XL for non-archival purposes, but lossless WebP is an excellent middle-ground, achieving over 2x the compression level of PNG.
Lossless WebP has also been supported by all major web browsers since September 2022, when Apple finally added full support for lossless and animated WebP images. It really doesn't make sense to still be using PNG, unless you're targeting really out-of-date Mac or iOS devices. Having drawings and illustrations be 50% smaller (versus PNG) is huge!
moebrowne 6 hours ago
https://groups.google.com/a/mozilla.org/g/dev-platform/c/3YM...
gsich 2 hours ago
kibwen 2 hours ago
"We added experimental support for JPEG XL behind a flag back in 2021. But, at 100,000 lines of multithreaded C++, we were concerned about the attack surface this added to Firefox. So, we laid down a challenge to the JPEG XL team at Google Research: Build a safe, performant, compact, and compatible JPEG XL decoder in Rust, and we’ll ship it. That challenge was met; Google Research built jxl-rs, and it’s the core of our JPEG XL support in Firefox."
F3nd0 24 minutes ago
Years ago, both Chrome and Firefox had experimental support. In October 2022, Chrome suddenly announced their decision to drop it (citing dubious reasons like lack of interest or improvements over existing formats). [1] It was only later, in January 2023, that Mozilla announced their formal position of not really caring about the format. [2]
In October 2023, one of the JPEG XL devs said that the responsible team at Google was ready to write a decoder in Rust if that was the only reason holding adoption back, even offering to work on browser integration. [3] One month later, another dev confirmed that a different pre-existing decoder written in Rust was already standard-conformant. [4]
It wasn’t until September 2024, nearly a whole year later, that Mozilla changed their official position from not caring to waiting for a suitable decoder written in Rust. [5] And it was only then that jxl-rs development really picked up. [6] Only later on, Chrome decided to change their position as well, but we can only speculate on what actually changed their mind.
There was no Google shoving JPEG XL down everyone’s throat like they once did with WebP. There was no Mozilla taking a clear, principled stance from the get-go. Whether or not JPEG XL was worth it, neither of these companies has acted in a transparently fair, exemplary way. And of course the first major browser to ship JPEG XL support to users was Safari, which may well have played a role in the others’ decision-making.
[1]: https://issues.chromium.org/issues/40168998#comment85
[2]: https://github.com/mozilla/standards-positions/issues/522#issuecomment-1409539985
[3]: https://github.com/web-platform-tests/interop/issues/430#issuecomment-1776762287
[4]: https://github.com/web-platform-tests/interop/issues/430#issuecomment-1811972676
[5]: https://github.com/mozilla/standards-positions/pull/1064
[6]: https://github.com/libjxl/jxl-rs/graphs/contributors?from=03%2F01%2F2024&to=01%2F01%2F2026kibwen 13 minutes ago
gsich 8 minutes ago
groundzeros2015 6 hours ago
jjcm 6 hours ago
Biggest concern I have was the same I had with AVIF a couple years ago, which is hardware acceleration on the server side. I attempted to roll out AVIF only to find out the encoding time was so long that sync calls were timing out due to queuing. It's gotten a lot better, but just know that all of these newer formats really do need more compute. It may not be worth the cost tradeoff vs webp until encoders are baked into chips.
xp84 5 hours ago
I'm assuming that for more persistent, cachable types of images, there wouldn't likely be that type of problem, right?
jjcm 4 hours ago
It's more if you accept image uploads from users in any way. I experienced a ~10-20x increase in processing time when accepting AVIF images, and I found that I couldn't rely on sync functions for that. I had to both change to async and upgrade hardware in order to support it at scale. I run a small reddit-like site that accepts media uploads and the end result was I had to choose between unshipping AVIF or doubling my server costs. I found that the image savings over webp weren't worth it at the time.
The same story is likely true for JXL until there's hardware encoding.
dabinat 3 hours ago
We tried AVIF and file sizes were much better but it would take multiple minutes just to generate. We also got feedback from our self-hosted customers that it was using way too many of their system resources.
So we’re now using WebP which generates in about 10 secs using much less CPU. I’m open to JPEG XL if it can improve on those metrics.
alerighi 5 hours ago
On the other side we introduce yet another format that has to be supported, that creates compatibility issues with people that is using older browsers, or older software, older cameras, etc.
It's just another format meant to replace other formats to uniform all, so now we have N+1 formats that the user has to deal with.
What are the benefit for the final user? A reduction in 50% of the image size? We are not talking about videos (I re-encoded a lot of older videos to h265 because it save me almost 100/150% of the space, but unless you are a professional photographer, that btw uses raw format for archival, you don't have Tb of images so the saving for the average user are neglectable!).
dataflow 5 hours ago
Many that you can search the web for, but to address the specific points you mentioned off the top of my head:
- Lower cell data usage for users
- Not everyone has gigabit fiber
teiferer 5 hours ago
Second, the "all connections are fast, what's the point" is one reason why the web is so slow. Connections are often slower than the dev with his 1gbps connect feels every day. The average website loads slower (in wall clock time) than it did 15 years ago. Smaller files and fewer network round trips would do everybody a favor.
nine_k 5 hours ago
This strongly depends on where your domicile is, even in Europe and the US. And lot of the users live outside these areas.
> JPEG was fine in the days we had much slower connections
Except that waiting for a large picture to load was very much thing, and in many cases still is.
> What are the benefit for the final user?
A number of users are still on metered mobile plans, and have little storage on their phones. With the current situation in electronics production, new phones are not going to offer more space, cheaper; to the contrary.
Also, publishing larger / better quality images becomes easier and cheaper.
tormeh 4 hours ago
Gigachad 15 minutes ago
u1hcw9nx 3 hours ago
The case against JPEG XL https://giannirosato.com/blog/post/case-against-jxl/
F3nd0 2 hours ago
There are some unanswered questions about the methodology used, the resources spent on development of the respective encoders is not taken into consideration, the future developments of JPEG XL encoding are written off as too costly and the author’s opinion on what kind of content is appropriate for the web is quite subjective. See also the recent discussion:
xx_ns 10 hours ago
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 10 hours ago
https://security.snyk.io/vuln/?search=libjxl
I remember Project Zero cautioning Google's browser team against adding insecure decoders/encoders.
dncornholio 9 hours ago
https://developer.chrome.com/blog/jpeg-xl-in-chrome#safety_f...
spider-mario 9 hours ago
paimapi 8 hours ago
right?
lern_too_spel 8 hours ago
spider-mario 8 hours ago
mrandish 6 hours ago
While I'm happy for the reversal, it would be helpful to have a corresponding explanation addressing what changed leading to this reversal just two years later (assuming the decision to support was made 9-12 mos ago). Since significant decisions are usually harder to make in big companies (due to many competing prioritities, stakeholders, and processes), they tend to also be harder to reverse (especially in just two years, when most of original deciders are still in the same roles). I suspect the real thing that changed is more interesting than "the technology or people changed" or "our prior assessment was wrong".
erk__ 9 hours ago
PaulHoule 7 hours ago
Somebody could think of the web as primarily a platform for consumption, in which case it is OK for it to support a limited number of formats, actually desirable because it reduces the attack area.
Another is that the web is connected to general purpose computing in which that case the web browser competes with GUI shells (e.g. explorer, finder) and should be able to support every image format that is commonly used on the platform.
Back in the 1990s most platform supported a lot of file formats that weren't JPEG or GIF but browsers didn't support them and only a small set of formats have been added since then.
A long time ago I ran some sites that hosted large image collections and I struggled with costs so I did a lot of thinking about how to optimize storage and transfer. I came to the conclusion about 5 years ago that WebP is consistently a win over Jpeg, but I've never been a fan of AVIF. Yeah, it does great for big blog hero images that people don't look at closely, but it makes my mirrorless shots look like they were shot on a cheap Android. Yeah, I've seen that picture of the F1 car and it is superficially impressive but if you look closely at the highlights you can see that it erased the real highlights and replaced them with something plausible but... different.
dist-epoch 7 hours ago
I'm on the other side, I hate webp because if I download such an image a lot of apps don't support it. So typically I need to screenshot it instead to get a usable jpg/png.
Now one more format to hate.
I would say webp/jxl/avif is anti-general compute, since they require very recent software.
mort96 6 hours ago
xp84 5 hours ago
I know that end-users making memes or whatever aren't a demographic that will matter for adoption, but it seems really weird that this is still a problem on Windows and Mac in 2026. I've searched for browser extensions to no avail.
Dylan16807 4 hours ago
mort96 3 hours ago
I just tried it out now, using Waterfox on macOS 27. The save image dialog literally already has a Format dropdown. But I'm guessing it's just a weird part of some native dialog, it lets me select between "WebP Image" and "All Files". This kind of design could've been used to allow the user to save it as a different format than what it was served as.
Dylan16807 4 hours ago
mort96 3 hours ago
Dylan16807 31 minutes ago
If you have support for multiple file types, you're already using multiple libraries or you're using a library that handles several kinds of file, either way you can and should update that.
asadotzler 7 hours ago
mort96 6 hours ago
kstrauser 3 hours ago
Imagine if installing libzstd meant that every program on your computer suddenly knew how to use ZSTD compression, or adding libjpegxl added support to every browser, word processor, and age editor you’d already installed.
Some parts of AmigaOS were wonky, like lack of memory protection. Others would still be phenomenally useful today.
j16sdiz 8 hours ago
F3nd0 5 hours ago
est 9 hours ago
Removed because no one from Google benifits from supporting it then.
Re-added because someone could get a promotion by supporting it now.
andruby 9 hours ago
Do you mean the users of the browsers not benefitting, or specific Google employees/stakeholders?
est 9 hours ago
They always abandon shit like this.
alwillis 7 hours ago
Google apparently wanted to be one of the "cool kids" supporting AVIF. When they removed the JPEG XL code from Chrome, they created the excuse that there was little demand for it, along with some other disingenuous talking points that didn't quite make sense. Ironically the project that ended up becoming JPEG XL was started by Google employees in Switzerland.
Anyway, I’m glad Google is supporting JPEG XL now. I wanted to use JPEG XL files for a project I started a month ago, but it was a non-starter with global usage under 20% at the time.
thesuitonym 8 hours ago
crote 9 hours ago
est 8 hours ago
Removed because trillion dollar advertising company don't bother, which also happens to be the browser vendor monopoly.
How many man-hour effort does it take to create jxl-rs ?
Gander5739 6 hours ago
nananana9 7 hours ago
Another giant codec is only a huge risk if you run the decoder in the renderer process, which they say in the linked thread they do, but I don't see a sane reason why.
I'm sure if they asked the secret Gemini 4.0 AGI to use their existing very good sandbox to throw all the decoders in their own process and only share the image buffers, it could do it in a few hours.
2OEH8eoCRo0 9 hours ago
code_duck 9 hours ago
DC-3 8 hours ago
titzer 7 hours ago
I saw this recently with Balena etcher. It's a firmware flashing app with about 10 buttons total. It's over 400mb because it's written in node and has an electron GUI.
Good jerb.
encom 7 hours ago
~$ du -h $(which dd)
76K /usr/bin/dd
Etcher truly is the clowniest Electron app of them all.mort96 6 hours ago
$ du -h $(which pv)
116K /usr/bin/pv
pv has a progress bar and nicer syntax. Next time you need to write an image, try: sudo pv -Yo /dev/blah /path/to/your/image.img
The -Y makes it sync after each write so that the progress bar represents actual progress instead of just how fast you can copy to kernel write buffers.My life improved measurably after I contributed that '-o' flag to pv and it then made its way into all my systems through regular OS updates :)
TheAmazingRace 2 hours ago
titzer 6 hours ago
Another example clown app: the MacOS downloads of TuxGuitar, a Java app, used to just ship as a zip with a big jar in it. Now it ships an entire Java Runtime environment specific to your processor architecture. It's 480MB. Derp.
yjftsjthsd-h 4 hours ago
MacOS used to include Java out of the box, and then they stopped doing that. How else should an app reasonably behave to keep supporting new versions of the system?
titzer an hour ago
BHSPitMonkey 4 hours ago
What you're saying is it's the ideal kind of application for not obsessing over its background resource consumption, given that it's only going to be running for 10 minutes once or twice a year.
xp84 5 hours ago
looperhacks 9 hours ago
spider-mario 8 hours ago
lxgr 9 hours ago
arghwhat 7 hours ago
The thing is that it's still just a library, it just happened to be pre-installed. CGImage is just a helper in the Core Graphics library, not some magical "native"/"core" functionality in the OS that would be different than any other library with the same features.
An equivalent library for Linux (glycin for example), or per-format libraries like jxl-rs, are not "included in the OS", and tend to be the very same libraries one would use for Windows. If that does the trick on most platforms, then why have the maintenance burden of doing something different on macOS if all it does is save a few bytes on disk?
From Google's perspective, they would likely not want Chrome for macOS to gain support for jxl as the sole platform anyway, even if they are using CGImage and could decode it that way...
lxgr 6 hours ago
Browsers have also largely switched to handling most aspects of TLS and certificates themselves, despite there being OS libraries for those as well; the same applies to HTTP.
echelon 9 hours ago
Static linking is one and done, headache gone. People have large drives these days, so it's not a problem.
There are areas where the browser will dynamically link, but those are more OS-related than image and file format codecs.
alwillis 8 hours ago
That's how it works on macOS; the bundled apps (Preview, Photos, etc.) gained support for JPEG XL.
EvanAnderson 8 hours ago
Flashbacks to DataTypes on the Amiga: https://wiki.amigaos.net/wiki/Datatypes_Library
Findecanor 7 hours ago
mrandish 6 hours ago
I got my A1000 in late '85 and only had prior exposure to 8-bit home computers (C64, Atari, etc), CP/M and DOS (no mainframes, minis or workstations). I didn't actually use Macs or early Windows until the early 90s and it was shocking how backward they still seemed in some ways. I'd sort of the assumed the other major platforms were making similar advancements throughout by the late 80s and shocked to find out how wrong I was. It wasn't until the mid-90s that PCs and Macs felt like they mostly caught up on QoL and OS features.
burnte 7 hours ago
groundzeros2015 6 hours ago
ur-whale 3 hours ago
Shared libraries are a bad idea that is simply taking way too long to just die the horrible death it deserves.
rdsubhas 9 hours ago
I have a feeling now JXL is here to stay, finally.
smaudet 6 hours ago
ur-whale 3 hours ago
More likely the Google eng. director who tried to get rid of it because of not-invented-here syndrome (it was built in a different org) got a new job or changed company.
Gigachad 13 minutes ago
I have to think this is a substantial reason for the backflip here as adding a new huge C library to browsers is a huge concern.
swiftcoder 10 hours ago
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
revolvingthrow 10 hours ago
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.
notnullorvoid 9 hours ago
cmplxconjugate 9 hours ago
slashink 8 hours ago
Discord Mobile absolutely supports animated WebP (in fact I just tried uploading one to make sure I wasn't hallucinating here).
aquova 7 hours ago
tasuki 8 hours ago
F3nd0 8 hours ago
The non-exhaustive table linked below shows how long it took for different programs to support different image formats since their introduction. Outside of Chrome, Chrome in disguise, and whatever has become of Firefox, adoption of JPEG XL has been far more enthusiastic than it ever has for WebP—or AVIF, for that matter. So we are very unlikely to have a long period when JPEG XL only works on the web and nowhere else.
https://cloudinary.com/blog/2026-the-year-of-jpeg-xl#_strong...
cosmic_cheese 6 hours ago
nemomarx 6 hours ago
This is pretty wild. Google can't align their own tools for it?
nemomarx 8 hours ago
hbn 6 hours ago
Seems like terrible branding if it wants to be taken seriously as a standard.
edflsafoiewq 3 hours ago
IvanK_net 3 hours ago
dopa42365 6 hours ago
Nothing wrong with that per se, it's just old and limited, especially compared to avif/AV1 which would be like a theoretical VP10 at this point.
groundzeros2015 6 hours ago
gruturo 3 hours ago
And much (though not all) of its improved compression (before it damages the image too badly) was anyway matched by the better JPEG encoders which were released and improved over time. It sure benched very well against a 30+ year old JPEG encoder implementation though.
JXL has a pixel-accurate JPEG-input mode with no generation loss which already beats WebP, a native mode which is way way better even, it addresses many more use cases and is not Google's pet project (saying this while thanking them for all the foundational work from which modern image/video codecs benefit - JXL itself first and foremost!) so it DOES have better than a snowball's chance in hell of becoming the defacto standard of the next 10-30 years and we'll soon see it in silicon.
kelseydh 10 hours ago
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.
zarify 10 hours ago
childintime 10 hours ago
AlienRobot 10 hours ago
weinzierl 10 hours ago
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 10 hours ago
The format is designed to be 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.
Unai 8 hours ago
yangm97 8 hours ago
shevy-java 10 hours ago
I have not read that many direct comparisons here.
spider-mario 9 hours ago
farlight 8 hours ago
spider-mario 8 hours ago
mort96 6 hours ago
Broiler9437 3 hours ago
andrewaylett 5 hours ago
pmarreck 10 hours ago
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).
weberer 9 hours ago
The same could be said for .webm, but Apple refused to support it because they wanted to patent-laden alternative to thrive.
alwillis 6 hours ago
Where do people get this stuff?
Apple finally supported WebP in 2020, 10 years after it was released by Google. Firefox added WebP support in 2019, a year before Safari. Was Mozilla also part of conspiracy to undermine WebP? Come on now.
Seems to me neither Apple or Mozilla wanted to be forced to support a format they had no say in developing. Usually there's a process for coming to consensus on standards.
WebP is ubiquitous now, not the case in 2010 when it was released.
It had advantages compared to JPEG, but not enough at the time to justify changing workflows, etc. WebP initially had better compression than JPEG, but as encoders/decoders improved (MozJPEG, Jpegli, turbo-libjpeg, Guetzli) the lead WebP had mostly went away regarding compression and visual fidelity.
Going forward, WebP is becoming less relevant by the day; it doesn't support wide gamut color; it only supports RGB. It's max pixel count is quite limited compared to AVIF and JPEG XL. Newer formats have use cases beyond the web; WebP doesn't.
crote 9 hours ago
When literally every OS already comes with a form of libjxl pre-installed there is no good reason not to add support for it.
> you just truncate the output stream at the right proportion of pixel data
Does the format have explicit support for this? As in, is there any easy way to do, say, an exact Range request after reading the file header?
yangm97 8 hours ago
Worst case scenario you should be able to add some smarts to the server and a query string such that the client can request 5% of the file or whatever simply by fiddling with the url.
Dylan16807 4 hours ago
esafak 7 hours ago
zigzag312 7 hours ago
Loading vs loaded difference needs to be clear.
youngtaff 6 hours ago
bmacho 6 hours ago
It's an attack vector for images to have different thumbnail/first bytes than the final image so software still have to decode the whole image.
Gander5739 6 hours ago
bmacho 4 hours ago
png/webp (just as jxl) can store thumbnail in their meta, but no operating system, gallery, browser etc uses that because it has no usage that is safe.
I am not sure how easy it is to create a jxl image that starts differently from how it ends. If it is super easy then I expect programs not relying on it for thumbnailing (especially that they already have a way to generate and store thumbnails). Maybe browsers will support progressive loading, but it has no use for local images.
Gander5739 3 hours ago
Gormo 10 hours ago
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 10 hours ago
kccqzy 9 hours ago
Gormo 2 hours ago
TheAmazingRace an hour ago
GrantMoyer 9 hours ago
ack_complete 7 hours ago
alwillis 9 hours ago
Apple added JPEG XL support for macOS, iOS, iPadOS, and watchOS in September 2023 [1]; iPhone 17 Pro/Pro Max added support for JPEG XL Lossy and Lossless compression for ProRAW pictures last year [2].
When Apple adopts jxl-rs, Safari, Chrome and Firefox will use the same JPEG XL decoder.
[1]: https://webkit.org/blog/14445/webkit-features-in-safari-17-0...
[2]: "iPhone 17 Pro’s Camera Leap: JPEG‑XL, Cleaner Shots, and Pro Filmmaking Tools" - https://modernengineeringmarvels.com/2025/09/19/iphone-17-pr...
mrpippy 6 hours ago
cyberrock 10 hours ago
YesThatTom2 10 hours ago
My guess: the engineers didn’t win the argument. The executives just gave up once all the other browsers had added support.
pwg 10 hours ago
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 10 hours ago
etatester 9 hours ago
giancarlostoro 7 hours ago
nikanj 10 hours ago
SillyUsername 9 hours ago
mda 9 hours ago
JimDabell 9 hours ago
surajrmal 9 hours ago
F3nd0 8 hours ago
As evidenced by what? When first rejecting JPEG XL, Google did share their reasoning, but security problems hardly figured in it.
cbolton 9 hours ago
JPEG XL is largely a Google effort including in creating the specification, the reference implementation and later a safer Rust implementation. Why would Google executives want to stop it? From what I gather it's Chrome engineers that didn't want it because it was huge, had little adoption (at the time), and was rather redundant with AVIF and WebP (for Web purposes). Not saying they didn't have related mandates from executives but they also have a lot of say in what goes in and what doesn't.
bmacho 6 hours ago
Google and Mozilla executives. The 'why' is not public knowledge. Maybe someone has a personal vendetta against some people involved in jxl.
moebrowne 6 hours ago
tepmoc 10 hours ago
pmarreck 10 hours ago
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
chaosharmonic 9 hours ago
Like, you can do this individually, but it's not the same thing as actually having it in the standard.
rozab 8 hours ago
chaosharmonic 8 hours ago
chaosharmonic 3 hours ago
(You know... for "Wumbo")
kps 8 hours ago
Does the one at the end of .JXL count toward the total? Nobody knows what it stands for anyway.
adrianmonk 4 hours ago
But people are definitely going to assume "eXtra Large". Lots of people. I guess a few will think "excel" (as in JPEG XL comes out ahead and is superior).
---
Levitating 8 hours ago
Like files.tar.xz may be decompressed with xz and then extracted with tar to get the directory "files".
I think in your case .md.fm would be a greater fit, as the front matter is read first. Or just .fmd
hmry 5 hours ago
AshleysBrain 9 hours ago
spider-mario 9 hours ago
adzm 9 hours ago
nananana9 8 hours ago
JPEG artifacts are literally a meme, normal people are aware of this stuff.
I hold the extremist view that had we decided to use .png for lossless webps, it would have been an overall net gain - in people's minds "png" maps roughly to "whoever last touched this image didn't do anything evil to it" - very few people care how the data is actually encoded.
Broiler9437 4 hours ago
debazel 9 hours ago
unglaublich 9 hours ago
arthur-st 8 hours ago
spider-mario 7 hours ago
mnw21cam 6 hours ago
But it's also a valid point.
deathanatos 5 hours ago
Dylan16807 4 hours ago
If you reencode a jpeg to a png, you used a lossless format but your image is very lossy.
spider-mario an hour ago
Levitating 8 hours ago
eviks 7 hours ago
yhjc2692 6 hours ago
tniemi 10 hours ago
etatester 10 hours ago
yangm97 8 hours ago
I’ll see myself out.
flockonus 4 hours ago
Sadly, still far from adoptable today's web: https://caniuse.com/jpegxl = 17% https://caniuse.com/?search=webp = 97%
Dylan16807 4 hours ago
flockonus an hour ago
Anything below ~90ish% is no go, unless i have a fallback strategy of some sort.
Dylan16807 22 minutes ago
Are you saying that the percent it'll be in six months isn't relevant to you, or something? You'll probably be working on most of the same projects, even. If you do care about the future then yes caniuse is missing that point.
> Anything below ~90ish% is no go, unless i have a fallback strategy of some sort.
Once a few more versions of chrome roll through it'll jump up to almost 80%, and you can have a fallback easily.
Synaesthesia 10 hours ago
lxgr 10 hours ago
arthur-st 8 hours ago
lxgr 7 hours ago
pmarreck 10 hours ago
moebrowne 6 hours ago
eviks 7 hours ago
cube00 7 hours ago
Bender 6 hours ago
Broiler9437 6 hours ago
ohyashae 9 hours ago
herf 7 hours ago
mort96 6 hours ago
Seems to be between a little and a lot faster in almost all of the tests.
herf 4 hours ago
boutell 10 hours ago
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.
Waterluvian 6 hours ago
arikwald 3 hours ago
Evidlo 7 hours ago
Have to stick with AVIF which supports up to 12 bits.
gen2brain 9 hours ago
tsuru 8 hours ago
anonymous344 5 hours ago
chuliomartinez 7 hours ago
codingjoe 10 hours ago
videah 10 hours ago
codingjoe 10 hours ago
201984 9 hours ago
llm_nerd 4 hours ago
For that tool you need to output an uncompressed target and use the reference command line tools, preferably libjxl and cjxl (which is still the reference, while jxl-rs remains the experimental), to create the JXL. You will have better compression with better quality, minus the glitches.