jug And soon Firefox will include it in Stable. During October
it will go from Safari only to majority coverage. Eventful
month!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.
|
> moebrowne Seems Firefox will get support in version
158https://groups.google.com/a/mozilla.org/g/dev-platf
orm/c/3YM...
|
> > gsich Obviously, once the Google overlords decided it.
|
> > > kibwen No, the reverse. Mozilla opposed Google's
original attempt to push JPEG XL years ago,
and declined to ship without an implementation
that they could confidently say was safe. See
https://hacks.mozilla.org/2026/08/intent-to-sh
ip-jpeg-xl/ :"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 That's not at all how it went.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/4016899
8#comment85
[2]:
https://github.com/mozilla/standards-posit
ions/issues/522#issuecomment-1409539985
[3]:
https://github.com/web-platform-tests/inte
rop/issues/430#issuecomment-1776762287
[4]:
https://github.com/web-platform-tests/inte
rop/issues/430#issuecomment-1811972676
[5]:
https://github.com/mozilla/standards-posit
ions/pull/1064
[6]:
https://github.com/libjxl/jxl-rs/graphs/co
ntributors?from=03%2F01%2F2024&to=01%2F01%
2F2026
|
> > > > > kibwen All of this reinforces my point, which
is that Mozilla is not simply
following marching orders handed down
by "the Google overlords".
|
> > > > > > F3nd0 Firefox did not take very long to
support AVIF (another recent image
format clearly favoured by
Google). Please do correct me if
I'm wrong, but I'm not aware of
Mozilla expressing any reluctance
over AVIF's abysmal lossless
performance or other shortcomings
(some of which have been addressed
since), or insisting on using a
memory-safe decoder like they have
for JPEG XL. Why the stark
difference in treatment?We may not
be able to say for certain, but
Google's massive influence is by
far the most plausible explanation
I can think of. And if the first
step in your decision making is
looking at what Google is doing,
then 'following marching orders'
is suddenly not such a bad
description. (One can argue that
with 3 % market share they don't
have much choice, but that's
beside the point.)
|
> > > > > > kibwen Mozilla was a founding member of
the Alliance for Open Media,
having sponsored Xiph to create
Daala, which was later polymerized
with Google's VP10 to create AV1.
Mozilla has a vested interested in
pushing all things related to AV1,
including AVIF. That has nothing
to do with Google's favor and
everything to do with Mozilla's
favor. Their hope was to use the
existence of AVIF as leverage to
give hardware vendors more
incentive to provide hardware
support for AV1.
|
> > > > > > F3nd0 > Mozilla has a vested interested
in pushing all things related to
AV1, including AVIF.Why? AV1 was
developed as a video codec. That
doesn't imply it's as good of an
image format nor that everyone who
supported its development has
vested interest in making it into
one. Just because someone has made
a cool hammer doesn't imply they
now need to view everything as
nails. (This provenance even
brings some drawbacks with it, yet
this time seemingly no one took a
pause before tossing in yet
another image format.)> Their hope
was to use the existence of AVIF
as leverage to give hardware
vendors more incentive to provide
hardware support for AV1.This is
the first time I'm reading about
this and I'm having a hard time
seeing how decoding images would
make for a significant incentive
to provide hardware support
(especially when everyone was
already more or less on board with
AV1 as a video codec). But I could
be wrong, of course. If you can
provide any links where Mozilla
gives this reason for adopting
AVIF or any hardware vendor gives
significant consideration to
decoding AVIF in hardware, it
would be much appreciated.
|
> > > > > > gsich [2] was anticipatory obedience
from Mozilla. Good for them that
they grew a spine later (or more
likely: they knew that Google will
implement it some time later, so
the change of opinion cost them
nothing).
|
> > > > > > kibwen This is mental gymnastics. If
Mozilla were following Google's
orders we would not need to resort
to phrases like "anticipatory
obedience" to describe a neutral
non-position; if they were
following Google's orders, they
would have simply endorsed it, end
of story, and then they would have
revoked that endorsement in
lockstep with Google as well,
which they didn't.
|
> > > > > > F3nd0 Again, when exactly has Google
endorsed JPEG XL? When did they
promise to ship it in Chrome
stable? Sure, they had it in
development as an experimental
feature at first, but so did
Firefox.The way I read it, both
companies were tentatively
interested until Google said they
changed their mind, and shortly
after Mozilla decided they didn't
really care. Correlation doesn't
imply causality, but their
positions followed a somewhat
similar trajectory at the very
least. (In contrast with, say,
Apple.)I just don't see where you
keep getting the idea that Google
was at some point far more
supportive of JPEG XL adoption
than Mozilla was.
|
> > > > > > gsich >neutral non-positionThis wasn't
the case. Mozilla even used
similar wording as Google
did.Mozilla
>We might find it necessary to
support the format if usage
becomes more widespread, but that
will be a product decisionGoogle
>There is not enough interest from
the entire ecosystem to continue
experimenting with JPEG XL(this
was retarded too, but wcyd if you
are forced to say this)
|
> jjcm Rollout looks solid, but I'll probably avoid deploying
it to anything live til early next year at the
minimum. That'll give time for browser adoption to
happen.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.
|
> > dabinat I had the same problem with AVIF. My platform
allows users to "scrub" through a video file
they've uploaded by hovering over the thumbnail.
To achieve this it creates a grid of 100
representative frames, up to 480px in width per
frame. So the images are pretty large and take up
a lot of space in JPEG format. File size is
important because it reduces lag time before the
thumbnail is scrubbable.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.
|
> > > echoangle How are you generating the frames? Is there a
chance you're looking trough the frames at
regular intervals and have to actually
"render" the video (I don't know the proper
term for this)? Did you try just extracting
the keyframes where an actual full image is
stored in the video file instead?
|
> > yhjc2692 One thing you can try is reducing the encoder
effort: libjxl produces something like 5% larger
files, but at 3-6x faster encoding speed, if you
turn it down from 7 (default) to 4. (The typical
compression rate benefit vs. JPEG is
30-60%.)Shameless plug: if you have GPUs in your
server, you can put them to use to make it faster!
https://github.com/yunho-c/gjxl (Granted, the
speed improvement at lower efforts aren't as
pronounced)
|
> > xp84 To make sure I understand, your concern
specifically applies to images that your
application server is rendering custom for each
visitor?I'm assuming that for more persistent,
cachable types of images, there wouldn't likely be
that type of problem, right?
|
> > > jjcm > your concern specifically applies to images
that your application server is rendering
custom for each visitor?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.
|
> > > > xp84 Thanks! I didn't think of the decoding
story but it hints at a possible reason
why some sites that have a high "usage to
money" ratio might specifically seek to
avoid the new formats if they need to
process the images, which I suspect most
do, even if it is just to create a
thumbnail.
|
> > > > javier2 This, even the prevalence of hevc (heic)
encoded image from phones have caused us
4x the cpu usage.
|
> > > > spider-mario It sounds like you're describing decoding
rather than encoding, or what am I
missing?
|
> yyyk * I don't deploy anything not supported in current
Firefox ESR. That's June-July 2027.* The versatility
is a bit of a downside when it comes to lossless.
Programs play games when it comes to formats mixing
both and when may appear to be lossless isn't always
thus. It would have been nicer if there was a direct
way (via extension+mime) to indicate lossless is
expected.* JPEG transcoding is a very nice feature.
|
> > Broiler9437 Quantized PNGs are a thing and those are not
easily detected either. For JXL, most files
compressed with Modular mode are lossless. You can
detected them in the metadata
|
> > > yyyk The problem is not that a file with a lossless
extension (e.g. PNG) may have actually had
lossy processing.The problem is that it's not
necessarily trivial to tell
programs/pipelines/transforms to act only
losslessly (there's definitely no common
switch; Quality 100 is in fact still lossy in
some encoders/formats). In practice some
programs use the extension to realize what
they should be doing.
|
> > > > farlight This doesn't really solve the problem, but
the good news is jxl has excellent
generation loss in lossy mode compared to
other formats, if you recompress it with
high quality, it keeps original quality
pretty well.Unlike older
formats:https://youtube.com/watch?v=qc2DvJ
pXh-A
|
> u1hcw9nx A great codec but not the best for the web. For
typical web use AVIF is almost always better.The case
against JPEG XL
https://giannirosato.com/blog/post/case-against-jxl/
|
> > F3nd0 The article brings attention to advancements in
AVIF encoders over the past few years (to which
its author has greatly contributed), but does not
provide a definitive comparison between the two
formats, even when it comes to the web. Parts of
it are entirely based on personal opinions and
educated guesses.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:https://news.ycombinator.com/item?id=49
690554
|
> > ksec Again, JPEG XL is not currently optimised for low
bpp images. Compared to AVIF which just spend the
past 3 years optimising it before writing that
blog post.
|
> > > JyrkiAlakuijala JPEG XL has been designed for keeping the
image intact at the lowest possible bits per
pixel (BPP), usually around 1 to 1.6 BPP.AV1
was designed to deliver a pretty good new
frame with as low as possible budget, and
further video frames could bring the missing
detail later. AVIF/AV1 has much more
aggressive filtering and more features that
are well suited for low bit budgets -- but
also is missing features that are needed to
get things right at higher quality.JPEG XL can
control filter strenght at 8x8 pixel
resolution, whereas in AVIF filter strenght is
constant over a 64x64 block.Similarly,
adaptive quantization is more fine grained in
JPEG XL.Finally, adaptive quantization
automatically modulates the filter strength in
JPEG XL (but not in AVIF), so the same data
does not need to be sent twice for this
purpose.All of these three differences are
visible in bit budgets only in the higher
quality images.
|
> > JyrkiAlakuijala that article does not seem specify which bit
rates/quality targets were used for analysis, and
uses a 1980s scanned photography film scan corpus
for the claims ... let's use digital photography
test corpora nowadays!
|
> hdjrudni I'm sad that it doesn't work particularly well for low
quality thumbnails. AVIF seems better in that
department. You did say that but it means I can't just
use it for everything.
|
> > Broiler9437 Current encoder regressed a lot on lossy images
compared to 0.7 era. There will be works done to
fix this in near future
|
> binaryturtle I don't see any advantage of any of the new formats
over the good old and proven formats, so I stick with
PNG and JPEG (properly optimized.) I can fire up any
old browser and it will just work.
|
> > Denatonium Unless you're targeting really old browsers,
lossless WebP is absolutely worth it over PNG.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!
|
> > > F3nd0 Personally, I avoid WebP out of spite. While
it has greatly improved over previous formats
in certain uses, it has been lacking or
offering only marginal improvements in others.
That didn't stop Google from pushing it hard
on the web.I was left feeling like the next
time we adopt a format that tries to do
everything, it should actually do everything
just as well or better than its predecessors.
Lo and behold, JPEG XL is probably the first
format which actually achieves this, covering
all kinds of pictures you can think of and
doing a pretty good job on all of them. So for
the first time, I feel like the format has
actually earned its place in the ecosystem,
rather than just being some megacorporation's
personal favourite.Of course, this point of
view is emotional more than rational.
Technically, WebP is a sensible choice, so I
don't mean to discourage anyone from using it
today.
|
> > > > miladyincontrol It wasn't some one company's choice and
push. Almost everyone wins when bandwidth
is cut and you get higher quality for less
space. I'd argue most people's hatred for
webp purely comes down to a few other
corporations like microsoft, not
supporting it well in the early days and
blaming the format instead.
|
> > > > > F3nd0 > It wasn't some one company's choice
and push.How so? This table [1] shows
the adoption dates for WebP in various
popular programs (as does Wikipedia
[2]). Of all high-profile programs,
Chrome was the only early adopter;
other browsers were avoiding it for
years, not to mention off-line
software. Mozilla went as far as to
work on a JPEG encoder [3] after WebP
was introduced by Google, to see if
maybe JPEG itself could be improved
enough. How does that not read like
one company's choice and push?> Almost
everyone wins when bandwidth is cut
and you get higher quality for less
space.Sure, but that doesn't mean you
immediately adopt every new codec that
brings improvements in some area. With
every new feature comes new code, new
baggage, new potential attack surface.
You have to ask if the improvements
are big and consistent enough to go
through the effort and burden the
entire ecosystem with yet another
format everyone now has to deal with.
You need to think of the user and
developer experience both in and
outside of the web.Microsoft would
have been perfectly within their right
to blame the format, since Google just
decided to let it run wild on the web
without garnering more support for it
first. The format has its pros and
cons, and it's up to all the involved
parties to weigh them and hopefully
reach a consensus. [1]:
https://cloudinary.com/blog/2026-the-y
ear-of-jpeg-xl#_strong_strong_timing_a
nd_interoperability
[2]:
https://en.wikipedia.org/wiki/WebP#Sup
port
[3]:
https://research.mozilla.org/2014/03/0
5/introducing-the-mozjpeg-project/
|
> > > > > bigbuppo Well other than the "use webpee or
we're going to lower your search rank"
thing they did.
|
> > > > > > Dylan16807 I'm sure they have some
preferences for smaller pages.If
you're saying they did a thing
where 200KB webp had an advantage
over 200KB jpeg, please link your
source. When I search I only see
people saying that's not the case.
|
> > VanTheBrand JPEGXL literally is able to display images and
colors that jpeg and png cannot (32-but floating
point, layers, emission independent transparency,
spot colors, built im depth maps). It's not just
about compression optimization. So for those use
cases standard JPEG and PNG alone will never work.
There are "updated" versions of JPEG that support
some of these like HDR but those won't work with
any old browser either so back to the same issue.
|
> > > Mistletoe Can the human eye even tell the difference?
This feels like 8k vs 4k tv.
|
> > > > xp84 Bottom line it can deliver greater quality
at much smaller filesizes. Considering RAM
and storage are more expensive per byte
now than they have been in years, I think
it's incumbent on everyone in a position
to do so, to use those resources
wisely.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 Good summary. Thanks. I've played
around a bunch with JPEG XL and the
lack of JPEG compression artifacts
even at much smaller file size is
amazing.
|
> > > > > > Gigachad I imagine the result of this will
be social media platforms and such
will deliver higher quality images
at the same filesize. Currently
for local storage any image format
is mostly fine, but for web
services the image size becomes a
massive cost which is why they
compress your 8MB JPEG down to a 2
megapixel crunchy mess.
|
> > > > aidenn0 It's complicated.It's trivial to make an
image that you can see the 8-bit
quantization in. Just make 256 vertical
gray bars, equally spaced. In much of the
image (usually the darker parts, but
depends somewhat on monitor calibration)
you will see the border between two
values. Note that this is every single
possible grey value in 8-bit RGB, so it is
a proper un-dithered rendering of a
gradient, and the borders you are seeing
are definitely quantization artifacts.Now,
if you apply proper dithering,
particularly on a high-dpi screen, you can
make it look a lot better, possibly even
undetectable.And this is just with the
dynamic range that is comfortable on a
computer monitor! If we really want to
represent vibrant images, then the glare
of the sun off of shiny objects should be
much brighter than the "paper white"
background used in e.g. your word
processor. It should be intuitive that the
brightest highlight in a real-world image
ought to be too uncomfortable to fill your
entire monitor with...Lastly, there's a
question what and how the image gets to
the browser. Sure for the images on the
landing page for $LARGE_CORPORATION you
have a graphic designer make everything
look great, and since most people still
have 8-bit displays, you'll want something
that looks good on one. But what about
e.g. a site for uploading photos? Are you
going to quantize all of their photos
before displaying them (possibly to
someone with an HDR display)?
|
> > > > throw0101a > Can the human eye even tell the
difference? This feels like 8k vs 4k
tv.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 You can very easily see ugly banding if
you try to use an 8 bit format to store
HDR images, and that's all you get with
normal jpeg.
|
> > > > > sroussey Everything should be HDR these
days.But I'm sure there are some that
will say 64k of RAM is all anyone will
ever need!
|
> > > > > > aidenn0 I do not own an HDR display. I
agree that HDR has huge
advantages, but it costs money,
and little of the content I
consume is available in HDR.
|
> > > > > > Dylan16807 Are you sure your phone can't do
HDR?The cost of HDR displays is
decreasing, and the data cost is
minimal. (adding more bits to
video actually decreases the size
because the rounding errors get
smaller)
|
> > > > > > aidenn0 Yes, 720x1520 24-bit display.
|
> > > > > > sroussey Instagram is HDR, maybe you just
don't know what content you are
missing.If I had a black and white
tv, all my content is there, how
would I know if they had color
versions?Ok, a little over the top
on the last one, but still
correct.
|
> > > > > > aidenn0 I don't use Instagram.
|
> > > > Gigachad Yes, a hdr photo in heif or jxl is a night
and day difference. And if you apply any
kind of color edits to the photo it
stretches the colors to the point visible
banding occurs on jpeg.
|
> > > > badatnames Yes, and image editors absolutely can. If
JXL lets me correct over/underexposed
images by default everywhere I find them
then it's worth it even just for that
reason alone
|
> > > > tormeh On an ecommerce site? Who cares. On
instagram or anywhere people share photos?
Amazing.
|
> > > > > sam1714 E-commerce is the important use case,
particularly in goods where people
care about appearance: clothing,
cosmetics, food.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.
|
> > > > throw0101c > Can the human eye even tell the
difference?Yes.JPEG can represent "X"
number of colours, but the human eye can
detect Y>X colours. JPEG-XL can represent
>X colours (but not as many as they human
eye, Y):*
https://en.wikipedia.org/wiki/Wide_color_g
amut*
https://en.wikipedia.org/wiki/JPEG_XL#Vers
atile_and_future-p...
|
> > > > > Dylan16807 JXL can do more colors than the human
eye can perceive. Some chunks are out
of range when using current standards,
but it can do other chunks at 100000x
the color resolution your eye can
detect.
|
> > > skybrian Yes, but that's still a niche use case. Web
pages look fine using the colors we already
have. Somewhat more vibrant colors are a
luxury.
|
> > > > Broiler9437 It looks fine sure, but that doesn't make
it good either. Are you going to lock
display technology to 8 bit forever? Most
PC monitors already match or exceeding
that limit, phones especially. HDR is
something that needs to happen eventually,
and for that new format is very important
|
> > > > > skybrian Sure, why not stay on 8-bit? You're
just asserting HDR is important, not
giving a reason.
|
> > j2kun I used to think this and then I saw how well webp
reduced my website's bandwidth costs compared to
optimized jpg or png. I felt a bit left behind at
that moment, like I should have been paying
attention to these great improvements over the
years.
|
> > > tech-ninja It is great to reduce file size but also the
quality drops faster than it does with JPG. I
did some testing and could confirm, it is
quite documented.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 How so? You can literally convert a JPEG
to a JXL that contains the exact same
information and is 30% smaller.
|
> > > > > throawayonthe seems to refer to webp not jxl
|
> > > account42 Are you actually comparing apples to oranges?
If webp reduced your bandwidth that much
you're properly overcompressing way below the
quality you used for jpg.
|
> > ezfe JXL has clear advantages and saying you don't see
them means you either didn't attempt to see them
or willfully ignore them
|
> > > smaudet I'm not sure if the parent comment means to
say, but I could choose to interpret their
meaning to be: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 > I think of them almost as the modern
TIFF - relatively simpleTIFF is not simple
at all. There is a joke that it stands for
"Thousands of Incompatible File Formats".
|
> > > > > davidkwast That is true but you can determine a
baseline from Tiff.In the GIS world we
have a Cloud Optimized Geo Tiff. It is
almost a standard now. This better
than go to another format like Jpeg2k
or ECW.Tiff is an extendable format.
Bit I am not saying that it can be
better than JpegXL. Just a curiosity.
|
> > > legitster Not everyone needs to be an early adopter of
every technology.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.
|
> > > > Gigachad The industry already started throwing out
jpeg for heif because jpeg is so woefully
inadequate. Most camera brands have heif
support now despite heif having horrible
patent issues. Jpeg XL provides all the
technical benefits without being patent
encumbered.
|
> > > > Arnt It may or may not be marginal.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 The very point of this topic is that JXL
is leaving the "early adopter" realm. If
your website begins serving JXL assets
next month, you'll simply be an adopter.
|
> > > > ezfe What are you throwing out to use JXL?
|
> > nomel I just switched over some machine vision code to
use it for the lossless format, saving around 30%
file size (~5 gigabytes per dataset) over
optimized lossless PNG. I'll gladly take any
storage donations you may be passing out though,
so I can continue to use the good old and proven
formats! ;)
|
> > legitster James Brown recorded his music to sound good over
an AM radio. It still sounds good on good
equipment.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 James Brown recorded his music to sound good
over an AM radio. It still sounds good on good
equipment.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.
|
> > > bigbuppo I still keep an awfultone on top of the
console.
|
> > asddubs biggest advantage for me is file size and lossless
conversion of existing jpg images. In a network
scenario that can meaningfully impact load times.
Others will care about e.g. bit depth
|
> > > kccqzy Yeah but file size and lossless conversion of
existing JPEG are something done by many other
codecs. Dropbox famously developed Lepton[0]
to compress existing JPEGs losslessly. There
need to be some other factors that would lead
to increased mindshare.[0]:
https://github.com/dropbox/lepton And Lepton
is dead.
|
> > > > Broiler9437 Being a well supported format on all OSs
will allow that. One of the biggest
failure of WebP was very poor native
support beyond browsers. JXL is supported
natively by pretty much all operating
systems right now beside Android. JPEG
recompression is simply an advantage
|
> > > > > Gigachad I think the main issue with webp is it
was pushed as purely a web delivery
optimisation format and not a final
output file you'd use in software. So
it worked fine if you have a website
automatically converting files for
delivery, but no one was pushing for
it to be supported in other
programs.JPEG XL is marketed as a high
end format for photographers and
already has support in most editing
software.
|
> > > > > > kccqzy There are many websites that would
happily deliver webp images to the
user and then refuse to accept
webp images uploaded by the user
(in forums for example). It just
didn't work for anything other
than being displayed in a browser.
|
> > > > asddubs well, lepton doesn't have browser support.
I'm not married to jxl specifically, I
just want something in the browser with
those features, and jxl fills that niche
|
> > xigoi For one, it allowed me to fit several years of
photos in a few gigabytes so I can easily back
them up without going broke.
|
> > RobotToaster JXL supports extra channels for multispectral
images.
|
> > > reaperducer JXL supports extra channels for multispectral
images.The bees and reindeer visiting my web
site will be very happy to see UV images.
|
> > > > Gigachad There could be a lot of scientific use
cases for this rather than having to cram
everything in to a visible color space.
|
> > > > > davidkwast For that use case we have Tiff with
float and lossless
compression.https://gdal.org/en/stable
/drivers/raster/gtiff.html
|
> > > > > reaperducer My mind drifted closer to
steganography.
|
> > copperx You should add that line to your resume.
|
> alerighi I still miss the point. We have connections nowadays
that are mostly good (with even the average domestic
connection being gigabit!) and JPEG was fine in the
days we had much slower connections.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!).
|
> > nine_k > the average domestic connection being
gigabitThis 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 connectionsExcept
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.
|
> > > account42 > This strongly depends on where your domicile
is, even in Europe and the US. And lot of the
users live outside these areas.The rest of the
world has faster Internet if anything. In
general, when new Internet backbones are set
up they will use the fastest tech available
but then only slowly upgrade it so
paradoxically regions that are lagging behind
in tech can often have better Internet
connections.
|
> > > > nine_k They also spread it thin. I see how places
like Goa have very cheap and very fast 5G
internet. Places like Botswana, not so
much: the speed may be there, but the cost
is very different. Mobile internet in
India may be very inexpensive if you come
from London, but it's still far from a
negligible cost for locals.
|
> > dataflow > What are the benefit for the final user?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
|
> > tormeh The issue for me is that RAW sucks, and Jpeg also
sucks. Jpegs are standardized and display
anywhere, but are also super lossy. RAW, like
fish, is not actually a thing beyond a sorta "I
know it when I see it" deal. It's non-standard
even between camera models from the same
manufacturer, and there are like 10 pieces of
software that bother with this bullshit and afaik
none of them are OSes or browsers.
|
> > > Gigachad There is actually a standardised raw format,
.DNG. The newer camera brands use this but the
big players all stick to their proprietary
formats. Amusingly DNG internally uses JXL to
store the image.
|
> > teiferer First, try explaining to a non-tech person the
difference between jpeg and png and they commonly
scratch their head. It's nice to have a single
format covering lossy and lossless, just meaning
"picture". Whether it's a photo where lossless is
ok or some icon where it isn't should be
insubstantial.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.
|
> groundzeros2015 Being an "everything" image format sounds awful and
something that's over engineered and no person
understands it.
|
xx_ns It's exciting to see JXL support being re-added in Chrome
after being removed a while ago and them seemingly not
being interested in supporting it [1].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.[1]:
https://issues.chromium.org/issues/40270698
|
> rdsubhas Yes I think the major story here is Google removing
and then re-adding it back. Big companies have big
egos, so this is quite a miracle.I have a feeling now
JXL is here to stay, finally.
|
> > Gigachad The original libjxl was written in C and has been
riddled with security issues. It's been rewritten
in Rust which is what has been shipped by Chrome
and soon Firefox.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.
|
> > > JyrkiAlakuijala 13 CVEs (6 CVEs on decoding) over five years
is a moderate or good track record. Legacy
format libraries like libjpeg, libpng, or
libtiff have historically accumulated dozens
or hundreds of CVEs even if they were built
several years before the CVE process was
started.libjxl's vulnerability rate is low,
but it still reflects the growing pains of a
modern high-quality C/C++ parsing library.With
Rust things can be safer: For jxl-oxide there
is one CVE. libjxl-rs does not yet have filed
CVEs.
|
> > mixermachine They more or less had to.
The PDF foundation has added JXL into the
standard.
Even Google can't afford to not display PDFs
properly.
Including it in the rendering engine is then just
the logical next step.
|
> > ur-whale > Big companies have big egosMore 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.
|
> > > cpill I think it was that the c version unstable and
there wasn't anyone to maintain the lib and
Google didn't want to do it
|
> > > alwillis Actually Google engineers in Switzerland
started jxl.
|
> innocent_name Wasn't it due to poor security? libjxl had notorious
bugs that would've on par with webp exploit, if
present in
browser:https://security.snyk.io/vuln/?search=libjxlI
remember Project Zero cautioning Google's browser team
against adding insecure decoders/encoders.
|
> > erk__ No, that was not part of the reason the Google
Chrome team gave:
https://groups.google.com/a/chromium.org/g/blink-d
ev/c/WjCKc...
|
> > > PaulHoule There are very interesting values
here.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 Interesting.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 Some people get mad at this reason for
hating WebP, but it's so true. The
main way in which most people's lives
are affected by WebP is that images
they download from the web no longer
work.
|
> > > > > > xp84 So true. If browsers would just
allow users to save images from
the web in the user's choice of
original, PNG or JPEG format, this
would be a huge win. I recall 25
years ago that Internet Explorer,
when right-clicking and saving an
image, allowed me to save it as
whatever it was, or as a .BMP.
Somehow that's impossible today??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 Copy image puts a bitmap on the
clipboard but nobody wants to
bloat the menu with saving in
alternate formats.
|
> > > > > > mort96 You don't need to bloat any menu.
There's already a "Save image
as..." context menu option which
opens a save dialog. This dialog
could have a way to select
format.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.
|
> > > > > > xp84 Yup. That's what the native Save
dialog in Windows does. And on Mac
too. Hit Command-S right now and
you can choose what flavor to save
the webpage as (Webpage, Complete;
Webpage, Single File; or HTML
Only).It's not bloat, it's
usefulness.
|