News for hackers. Stuff that matters.
Re:JPEG XL support has officially been removed from Chromium by hmry on Saturday December 10, 2022 @10:23AM (#33933348)
Sad day for image formats. JXL really looked like the future, it could have replaced all the image formats I use on my websites. Especially the lossless JPEG recompression mode, for which there is no existing option.

I think I will continue using it with WASM polyfills, in hopes that Google will change their mind once the rest of the industry has switched to JXL.

Re:JPEG XL support has officially been removed from Chromium by masklinn on Saturday December 10, 2022 @10:39AM (#33933488)
> in hopes that Google will change their mind once the rest of the industry has switched to JXL.

What rest of the industry? Apple is clearly not interested, neither is Microsoft[0], and xl weirdoes have been busting mozilla's balls for years with little progress.

Even if you manage to bully Mozilla into shipping and default-enabling xl rather than just removing it, Firefox is currently sitting at an incredible 2.5% market share (and I'm saying that as a Firefox user).

[0] well they obtained a patent on rANS so they might be interested in other people using it I guess, that's money in the bank: https://www.theregister.com/2022/02/17/microsoft_ans_patent/

Re:JPEG XL support has officially been removed from Chromium by dieulot on Saturday December 10, 2022 @10:57AM (#33933658)
> Apple is clearly not interested

They have made no such statement AFAIK. The fact that they adopted AVIF relatively swiftly, and generally improved their cadence a bit, makes me ready to not be surprised if they ship JPEG XL in a year or two.

Re:JPEG XL support has officially been removed from Chromium by masklinn on Saturday December 10, 2022 @11:39AM (#33934017)
> The fact that they adopted AVIF relatively swiftly

Can be linked to Apple being a governing member of AOM.

> and generally improved their cadence a bit, makes me ready to not be surprised if they ship JPEG XL in a year or two.

Feel free to hold your breath, but I don't think that'll be good for your health.

The webkit bug for AVIF was opened in February 2020, an "initial support" patch was proposed in May, support was merged in March 2021. Apple separately shipped the decoder[0] in iOS and macOS in September/Octoboer 2022, and enabled the feature for Safari.

The webkit bug for JXL was opened in February 2020. That's about all that's happened to it. Reaction has been:

- Webkit is not super interested in adding a bunch of third-party unsafe code[1]

- Safari support requires OS support, which is non-existent for JXL[2]

[0] Webkit on non-apple platforms can use Webkit's decoders, on Apple platforms it uses CoreGraphics, though as seen with HEIF having CG support doesn't mean Apple enables the format in Safari.

[1] https://lists.webkit.org/pipermail/webkit-dev/2021-May/03184...

[2] https://lists.webkit.org/pipermail/webkit-dev/2021-May/03185...

Re:JPEG XL support has officially been removed from Chromium by dieulot on Saturday December 10, 2022 @11:57AM (#33934171)
They’re working on ending the OS-parity nonsense with AVIF. https://webkit.org/blog/13584/release-notes-for-safari-techn...

To be clear I didn’t say I’m holding my breath. Just that it’s not “obviously” impossible.

Re:JPEG XL support has officially been removed from Chromium by masklinn on Saturday December 10, 2022 @12:44PM (#33934688)
They’re not working on anything, this just means the WebKit previews or the odd product which embeds WebKit rather than use webviews can run regardless of OS support.

Apple ain’t going to enable features they don’t support on safari.

Re:JPEG XL support has officially been removed from Chromium by dieulot on Saturday December 10, 2022 @01:57PM (#33935575)
That’s Safari’s preview.
Re:JPEG XL support has officially been removed from Chromium by masklinn on Saturday December 10, 2022 @02:19PM (#33935809)
No, it is not. It's webkit. Safari is based on webkit, but the webkit project at large does not decide what does and does not go in Safari.

That's why there are regular "Webkit features in Safari X": that something is added to webkit does not guarantee it'll land in Safari, ever.

Hell, it took 18 months and 2 iOS/macOS releases for the AVIF support to go from landing in Webkit to landing in Safari. And that was something Apple wanted.

Re:JPEG XL support has officially been removed from Chromium by smoldesu on Saturday December 10, 2022 @01:51PM (#33935519)
> Just that it’s not “obviously” impossible.

Neither was webm support, but that didn't stop them from taking several years to implement it (and even then it was half-finished). Apple clearly wants to play the superiority game with their own codecs. They have zero incentive to support any codecs they didn't build, and have been known to abandon standards that they help develop.

Nothing is technically impossible for Apple, but codec support is stuck between an ideological/financial rock and a hard place.

Re:JPEG XL support has officially been removed from Chromium by dmitriid on Saturday December 10, 2022 @02:38PM (#33935988)
> Apple clearly wants to play the superiority game with their own codecs. They have zero incentive to support any codecs they didn't build, and have been known to abandon standards that they help develop.

And on the other end you have Google who threatens others if they don't bend over and implement Google's codecs in hardware [1]. The codecs space is, and has always been, a game of shitty players.

[1] e.g. https://www.protocol.com/bulletins/av1-android-14-requiremen... and https://www.protocol.com/youtube-tv-roku-issues

Re:JPEG XL support has officially been removed from Chromium by smoldesu on Saturday December 10, 2022 @03:00PM (#33936236)
AV1 is a more open codec than MOV or AAC, so it's not really any shittier of a play than Apple demanding third-parties use AAC for every iPhone accessory.
Re:JPEG XL support has officially been removed from Chromium by pigsty on Saturday December 10, 2022 @11:09AM (#33933749)
Apple dragged their feet on introducing webms to Safari and they still often require fiddling with to get working on iOS. If Apple isn’t jumping at supporting a format, it’s generally safe to assume they’ll do all they can to not support it unless the pressure is overwhelming.

Which doesn’t seem to be the case with this format.

Re:JPEG XL support has officially been removed from Chromium by JyrkiAlakuijala on Sunday December 11, 2022 @04:59AM (#33941789)
Apple is a company that cares deeply about usability. Once JPEG XL reaches critical mass in photography or creative work (video mastering, image processing, graphics and similar), Apple will very likely be the first to add support. Their users much rather have a thumbnail than a stock icon for photographs and graphics. I wouldn't be surprised if JPEG XL support would be announced by mid 2023.
Re:JPEG XL support has officially been removed from Chromium by lonjil on Saturday December 10, 2022 @11:08AM (#33933745)
That patent is completely irrelevant to JXL. JXL doesn't do anything described in the patent.

And in any case, I think the person you responded to is referring to non-web actors like Abode, who seem to like JXL.

Re:JPEG XL support has officially been removed from Chromium by masklinn on Saturday December 10, 2022 @11:22AM (#33933864)
> That patent is completely irrelevant to JXL. JXL doesn't do anything described in the patent.

In the article I linked, the creator of ANS asserts that Microsoft's patent covers the variant used in JXL.

A Cloudinary lead says it doesn't but they're not a lawyer, and it's not exactly in their interest to say it does.

> And in any case, I think the person you responded to is referring to non-web actors like Abode, who seem to like JXL.

That is completely irrelevant to Chrome, why would Google change their mind on that basis?

Re:JPEG XL support has officially been removed from Chromium by lifthrasiir on Saturday December 10, 2022 @12:00PM (#33934214)
> In the article I linked, the creator of ANS asserts that Microsoft's patent covers the variant used in JXL.

This doesn't necessarily mean JPEG XL is patent-encumbered (the patent is still annoying, but not necessarily this way). It is recommended for ISO standards that relevant patents should be disclosed and available on a non-discriminatory basis [1], and while patent holders can ignore this recommendation they generally have no reason to do so. In the case of JPEG XL only Google [2] and Cloudinary [3] filed patent declarations, so Microsoft is reasonably thought to have no patents relevant to JPEG XL.

[1] https://www.iso.org/iso-standards-and-patents.html

[2] https://isotc.iso.org/livelink/livelink/fetch/2000/2122/3770...

[3] https://isotc.iso.org/livelink/livelink/fetch/2000/2122/3770...

Re:JPEG XL support has officially been removed from Chromium by lonjil on Saturday December 10, 2022 @11:53AM (#33934141)
> In the article I linked, the creator of ANS asserts that Microsoft's patent covers the variant used in JXL.

Microsoft is a member of ISO. They're obligated to notify ISO if they have any relevant patents to new standards. The subcommittee that JPEG is part of is even chaired by a Microsoft employee, so it's not like they'd be unaware.

Duda seems to think that Microsoft's patent simply covers rANS in general, but this seems dubious. Not only would it cover a lot more than JXL, it would have shitloads of prior art. The patent seems to describe an improvement of rANS, which isn't used in JXL.

Further still, Microsoft has straight up said that the patent is free to use for any open codec.

> That is completely irrelevant to Chrome, why would Google change their mind on that basis?

WebP adoption was slowed, and is to some extent widely hated, because it for many years had zero support outside the web. Not only is JXL seeing faster than adoption outside the web than WebP, it's seeing faster adoption than AVIF. That seems relevant to me. And of course, web companies literally can't adopt it until at least one browser starts supporting it. Shopify already serves JXL when you enable the flag. Facebook wants to use it. Yet Chrome's devs claim that there is basically no ecosystem interest. It's pretty ridiculous.

Re:JPEG XL support has officially been removed from Chromium by scorpio241 on Saturday December 10, 2022 @12:01PM (#33934225)
There was some discussion about this rANS patent among data compression experts, but it looked like they don't know what improvement it is supposed to bring:

https://encode.su/threads/3863-RANS-Microsoft-wins-data-enco...

Re:JPEG XL support has officially been removed from Chromium by gjsman-1000 on Saturday December 10, 2022 @11:33AM (#33933956)
Besides the fact that only some image viewing programs and image editors support JXL... it is worth remembering that AVIF is just the image format used within the AV1 video codec. So, when AV1 becomes more popular and starts really showing up in silicon (which Google is putting huge pressure on silicon vendors for), almost everyone will have a hardware AVIF decoder for free, should they choose to use it. If that happens, any decoding speed advantages that JXL has could be blown apart very quickly. This makes AVIF, in my view, a much stronger long-term play, as how many people are going to implement hardware JXL decoders? AVIF will be much faster, perhaps slightly less efficient, and plenty good enough.
Re:JPEG XL support has officially been removed from Chromium by lonjil on Saturday December 10, 2022 @11:56AM (#33934167)
> So, when AV1 becomes more popular and starts really showing up in silicon (which Google is putting huge pressure on silicon vendors for), almost everyone will have a hardware AVIF decoder for free, should they choose to use it. If that happens, any decoding speed advantages that JXL has could be blown apart very quickly.

No one has any plans to decode AVIF still images in hardware. There are two problems. The subset of AV1 supported by hardware is much narrower than what is in practice used in AVIF images. Such images cannot be decoded by hardware. Second is that it actually doesn't get you any speed. Each image would need to be shuffled to the GPU, decoded, then sent back because browsers aren't really set up right for doing everything on the GPU. And any non-stateless HW decoder would be problematic, since every single image would need to reconfigure the decoder state, which is slow.

Re:JPEG XL support has officially been removed from Chromium by astrange on Saturday December 10, 2022 @12:13PM (#33934352)
> Each image would need to be shuffled to the GPU, decoded, then sent back because browsers aren't really set up right for doing everything on the GPU.

This isn’t a problem on any mobile SoC because “sent to the GPU” doesn’t mean anything on a unified memory system. (And Safari does use hardware image decoding.)

Re:JPEG XL support has officially been removed from Chromium by TD-Linux on Saturday December 10, 2022 @01:25PM (#33935182)
>The subset of AV1 supported by hardware is much narrower than what is in practice used in AVIF images

The majority of AVIF images are hardware decodeable, even if most viewers don't bother with it. The biggest limitation is that profile 0 decoders are 4:2:0 only, but that describes the majority of Web images.

Re:JPEG XL support has officially been removed from Chromium by vanderZwan on Saturday December 10, 2022 @12:16PM (#33934386)
> Besides the fact that only some image viewing programs and image editors support JXL.

Krita, GIMP, DarkTable, Affinity, and freaking Adobe are just "some" image viewing programs to you?

Re:JPEG XL support has officially been removed from Chromium by toastal on Saturday December 10, 2022 @12:30PM (#33934518)
+ ImageMagick, imlib2, Firefox with a flag…
Re:JPEG XL support has officially been removed from Chromium by gjsman-1000 on Saturday December 10, 2022 @01:42PM (#33935398)
The ones most people actually use do not support JXL. Namely, for better or worse, Windows Photo Viewer and MacOS Preview. Nor does any web browser (except experiment flags that nobody knows about).

Adobe supports it... for importing, but you can't export to JXL. You can count plenty of obscure photo formats like JPEG 2000, IFF, PCX, OpenEXR, etc. in that category.

Re:JPEG XL support has officially been removed from Chromium by toastal on Saturday December 10, 2022 @10:54PM (#33939895)
It works fine in feh (image preview) and all of the open source tools I use for photography mentioned before. I have the browser flags enabled.

I guess I’m not an actual user.

Re:JPEG XL support has officially been removed from Chromium by seanp2k2 on Saturday December 10, 2022 @02:05PM (#33935672)
OpenEXR isn’t obscure for folks who work in animation / VFX :) but yeah I agree that JXL doesn’t seem to be getting wide support any time soon.
Re:JPEG XL support has officially been removed from Chromium by gsich on Saturday December 10, 2022 @10:15PM (#33939695)
Wikimedia has 10% on Non-Input-crippled (or handicapped) devices for Firefox.
Re:JPEG XL support has officially been removed from Chromium by EVa5I7bHFq9mnYK on Saturday December 10, 2022 @12:31PM (#33934532)
>>Firefox is currently sitting at an incredible 2.5% market share

Starting to think Firefox users can be put on the "non team players list" and "people that have something to hide list".

Re:JPEG XL support has officially been removed from Chromium by oivey on Saturday December 10, 2022 @12:48PM (#33934734)
Why? I don’t understand the angle.
Re:JPEG XL support has officially been removed from Chromium by mort96 on Saturday December 10, 2022 @10:56AM (#33933654)
The main reason this is sad to me, despite the existence of AVIF, is: JXL could losslessly re-compress JPEG images. There's a vast amount of JPEG images out there where the uncompressed data is long lost. Those images can't really take advantage of AVIF, since then you'd end up double-compressing the image; AVIF will do its best to re-create the JPEG compression artefacts. JPEG XL can achieve better compression ratios on existing JPEGs without this double-compression problem.
Re:JPEG XL support has officially been removed from Chromium by maria2 on Saturday December 10, 2022 @11:08AM (#33933748)
That doesn’t seem like a great reason to use JPEG XL. Existing JPEGs are meeting the needs of their users. Sure, maybe those images could be ever more compressed, but it’s clearly not a deal breaker otherwise those images wouldn’t have been JPEG encoded in the first place. Second, the amount of existing JPEGs [that people care about] will decrease over time, both in quantity and as a portion of the total image population. So lossless re-encoding is a solution in search of a problem.
Re:JPEG XL support has officially been removed from Chromium by mort96 on Saturday December 10, 2022 @12:14PM (#33934360)
Over the past 30 years, JPEG has been the best generally available compression format, and it's what consumer cameras generally use to store their photos. I'm not sure what you imagine people would have used instead if storing images efficiently is "a deal breaker".

As for the amount of existing JPEGs that people care about decreasing over time: This might eventually become true, but only to a point. People's existing photo archives are generally all JPEGs. People care about even (especially?) the older images in their photo albums. And it will take a long time before everyone is adding exclusively AVIF-encoded rather than JPEG-encoded images to their archives.

Re:JPEG XL support has officially been removed from Chromium by maria2 on Saturday December 10, 2022 @12:25PM (#33934474)
Does re-encoding JPEGs as JPEG XL really unlock anything new? The answer is likely no. So this case is not useful to optimize for.

As for people's photo albums. The iPhone is already storing new images in HEIF, so JPEGs are becoming less relevant with each passing day. And of course, you can still view the old images perfectly fine as JPEGs.

Re:JPEG XL support has officially been removed from Chromium by mort96 on Saturday December 10, 2022 @04:55PM (#33937279)
I don't know what you mean by "unlocking anything new". You have identical images at a smaller size.

Old images in your photo library aren't becoming less relevant with each passing day. I don't know why you would suggest that they are. I know that iPhone has switched to storing images as HEIF and nothing in my comment suggested otherwise.

Re:JPEG XL support has officially been removed from Chromium by maria2 on Saturday December 10, 2022 @05:16PM (#33937494)
> I don't know what you mean by "unlocking anything new". You have identical images at a smaller size.

Yes exactly, nothing new is unlocked. So why would I use this format? Was the old size of the images preventing me from enjoying them in any way? No. Of all the old JPEGs out there that absolutely must be losslessly transcoded from the already lossy JPEG encoding, how many are prohibitively large? You can still look at both a JPEG and JPEG XL image locally. Most likely you'd be able to serve both images over HTTP, although the JPEG image may take a bit longer to load. And how many cases require the new and old images be exactly the same? My point is that, if the main selling point of your codec is that you can create the same thing as 30 years ago only smaller, then it's going to be a hard sell compared to other formats out there. If the choice was between JPEG and JPEG XL, then sure, let's use JPEG XL. But the choice is between JPEG XL and other formats with better features.

Other image formats like AVIF add new features that enhance images. Yes, the images are smaller, but also way more powerful. Image sequences, for instance, enable new features like "live images." Converting your old JPEG to a smaller JPEG isn't going to magically enable live images.

tldr: I'm looking for a reason to care that I can losslessly re-transcode my old JPEGs. Ok, the re-transcoded images are smaller and exactly the same as before, but what is a real world reason why I would need that vs. using the old JPEG directly or re-transcoding it to AVIF?

Re:JPEG XL support has officially been removed from Chromium by mort96 on Saturday December 10, 2022 @06:06PM (#33938022)
> So why would I use this format?

Because the size is smaller and the quality is the same? Literally the same reason why you'd use any new image format, except that this benefit also applies to existing images, not just new ones?

I'm not against AVIF or anything, if you want to add future images which are using fancy animation features from AVIF then that's cool. You don't have to choose between image formats, you can (and already do!) use the right one for the task.

> tldr: I'm looking for a reason to care that I can losslessly re-transcode my old JPEGs. Ok, the re-transcoded images are smaller and exactly the same as before, but what is a real world reason why I would need that vs. using the old JPEG directly or re-transcoding it to AVIF?

You can use the old JPEG directly, but then your library takes up more space. If you re-transcode your old JPEGs to AVIF, you're losing quality or at the very least irreversibly changing the images.

I'm not arguing that it's the world's biggest deal or anything, but a free 20% size reduction on all photos in an image library and all JPEGs sent over the web doesn't seem like a bad deal.

Re:JPEG XL support has officially been removed from Chromium by bjourne on Saturday December 10, 2022 @07:52PM (#33938766)
I think the point is that it is much more important to achieve better compression ratios on the monstrously large files modern digital cameras produce than to reduce the already tiny sizes of peoples' family albums from the 90's. Compressing a 90 kb to 45 kb without loss of quality is impressive, but not as useful as compressing a 20 mb raw image to 18 mb.
Re:JPEG XL support has officially been removed from Chromium by mort96 on Sunday December 11, 2022 @06:15AM (#33942221)
My JPEGs are significantly larger than 90kB. At this point you're just trolling.
Re:JPEG XL support has officially been removed from Chromium by maria2 on Sunday December 11, 2022 @02:28PM (#33946569)
I think you're not understanding my question. You said that the most exciting feature of JPEG XL is the ability to losslessly encode old JPEGs. My point is that, if this is the most exciting feature, then it's unsurprising that the industry is choosing to ignore JPEG XL as the "most exciting feature" is more or less useless.

Technology is a means to an end. Transcoding images is a means. The end is what you do with it. In the 90s and early 2000s, encoding images in JPEG allowed for digital cameras to store vastly more images on their limited storage space. Bandwidth was extremely limited, so JPEG encoding allowed for detailed images to be shared over the web, which wouldn't have been possible in a different format. Today, however, storage and bandwidth are cheap. JPEG already does a decent enough job for old images. Making old images even smaller isn't really enabling any new "ends."

I guess the ultimate question I'm asking is "Why do you want your old JPEGs to be smaller?" What is the end you hope to achieve with smaller JPEGs?

Re:JPEG XL support has officially been removed from Chromium by JyrkiAlakuijala on Sunday December 11, 2022 @03:21PM (#33947064)
Smaller is what compression is for.
Re:JPEG XL support has officially been removed from Chromium by maria2 on Sunday December 11, 2022 @03:43PM (#33947278)
And there are other codecs that compress similarly to JPEG XL that also support other features like animation. So, again, why would I use JPEG XL?

But anyway, this conversation was helpful. I guess there aren't really many reasons to use JPEG XL.

Re:JPEG XL support has officially been removed from Chromium by JyrkiAlakuijala on Monday December 12, 2022 @01:28PM (#33958237)
There are no such similar codecs. Jpeg xl is in its own category in compression efficiency when rated by users at densities/qualities used in the internet. Roughly similar efficiency steps between libjpeg-turbo, WebP, AVIF and then jpeg xl.
Re:JPEG XL support has officially been removed from Chromium by iopq on Saturday December 17, 2022 @12:11AM (#34024954)
JXL has the feature set that is better than any other solution.

Killer feature #1 is compressing existing JPEG images. Nothing else can do this

Killer feature #2 is HDR images with over 10 bits of depth and high resolution. It comes out of your camera/phone already like this but we can't post it online! What a joke

Re:JPEG XL support has officially been removed from Chromium by lifthrasiir on Saturday December 10, 2022 @12:15PM (#33934380)
Individual features of JPEG XL might be not enough, but JPEG XL is a package for all those features, which make it much more attractive than alternatives. And JPEG is really popular while WebP, which finally reached a point of universal support recently, still struggles [1]; it will remain popular enough for at least a decade and probably more.

[1] https://w3techs.com/technologies/overview/image_format

Re:JPEG XL support has officially been removed from Chromium by matheusmoreira on Saturday December 10, 2022 @12:04PM (#33934250)
> I think I will continue using it with WASM polyfills

Images that can't be displayed without Javascript. Incredible.

Re:JPEG XL support has officially been removed from Chromium by yarg on Saturday December 10, 2022 @05:05PM (#33937381)
Images unconstrained by vendor support. Incredible.
Re:JPEG XL support has officially been removed from Chromium by hirorpt on Saturday December 10, 2022 @09:17PM (#33939363)
I live in a world where Javascript is disabled by default, but I already see many sites where images are not viewable. In the case of JPEG XL, the alternative is to use Firefox and enable the flag, so unlike these sites, the claim that the images cannot be viewed unless Javascript is enabled is not valid.
Re:JPEG XL support has officially been removed from Chromium by niutech on Monday December 12, 2022 @07:10PM (#33962511)
You can use <picture> element for a JPEG/PNG/WebP fallback.
Re:JPEG XL support has officially been removed from Chromium by speedgoose on Saturday December 10, 2022 @12:06PM (#33934272)
While you need some little JavaScript to initialise it, WebAssembly isn’t JavaScript.
Re:JPEG XL support has officially been removed from Chromium by matheusmoreira on Saturday December 10, 2022 @12:12PM (#33934338)
It's still images that can't be displayed without Javascript enabled. It's also a distinction without a difference. It's third party code downloaded over the internet and automatically executed on my computer.
Re:JPEG XL support has officially been removed from Chromium by speedgoose on Saturday December 10, 2022 @12:45PM (#33934707)
I was simply a bit pedantic.

And also, JavaScript should always be enabled. Very very few people disable it and they are used to have a broken web experience anyway so it’s not an issue to ignore them. Worst case they don’t see pictures until they eventually enable JavaScript.

Executing third party code in a sandbox is a security risk. You need to allow a level of risks when you use your computer on internet, and by disabling third party code you are safer but you also have a lot less useful computer.

Re:JPEG XL support has officially been removed from Chromium by rebolek on Saturday December 10, 2022 @01:39PM (#33935366)
> JavaScript should always be enabled.

Why? Most pages are static text and images, most pages don't need JS. So why should JS be always enabled?

Re:JPEG XL support has officially been removed from Chromium by h4x0rr on Saturday December 10, 2022 @01:51PM (#33935515)
I think they wanted to say that when you make a website you can pretty much expect everyone to have javascript enabled since it's on by default. Outside of HN IT nerds of course :p
Re:JPEG XL support has officially been removed from Chromium by chipotle_coyote on Saturday December 10, 2022 @02:59PM (#33936219)
I wouldn't be as prescriptive as the OP, but it seems to me that the vast majority of web sites for 15+ years have had some JavaScript, even if they aren't "single page applications". Sometimes those sites will break completely without JavaScript, but very often it's more that parts of them break, or just work worse.

I know the folks who advocate turning off JavaScript think that such reduced functionality is a worthwhile tradeoff, but they don't know what they're missing in a very literal sense. And I can't help but suspect the main benefit they're getting is not improved security; it's a warm, fuzzy feeling of smugness. Many of them probably also use Emacs.

Re:JPEG XL support has officially been removed from Chromium by speedgoose on Saturday December 10, 2022 @02:34PM (#33935955)
When I look at the most visited websites, I see mostly web applications that are a bit more complex than static text and images and they all require JavaScript. For sure you could create lightweight versions of many of these applications, without JavaScript and server side generated HTML, but my point is that the users should have JavaScript enabled to browse the web.

https://en.m.wikipedia.org/wiki/List_of_most_visited_website...

Re:JPEG XL support has officially been removed from Chromium by hypertele-Xii on Saturday December 10, 2022 @12:11PM (#33934327)
That doesn't counter the fact that it's an image that won't display without JavaScript.
Re:JPEG XL support has officially been removed from Chromium by speedgoose on Saturday December 10, 2022 @12:46PM (#33934719)
True. The very very few people who disabled JavaScript will have to add some more websites to their allow list.
Re:JPEG XL support has officially been removed from Chromium by dmitriid on Saturday December 10, 2022 @03:44PM (#33936608)
It's not the "very-very few". It's the combined population of several large countries.

Because you're immediately excluding people on old devices, on underpowered devices, on devices on bad networks, on devices with weird/incomplete/glitchy/limited support for what you need, sites where JS just errors out (and dies, because there are no recovery options if there's a global JS error)... And the list just goes on, and on, and on.

The inability of developers to look beyond their latest-and-greatest dev machines with unlimited power and everything under the sun enabled is just mind boggling.

Re:JPEG XL support has officially been removed from Chromium by ddevault on Saturday December 10, 2022 @01:44PM (#33935427)
JXL had this coming. They should have written specifications. The implementation can never be the standard. I hope everyone watching this learns from their mistake.
Re:JPEG XL support has officially been removed from Chromium by JyrkiAlakuijala on Saturday December 10, 2022 @05:35PM (#33937689)
Another take on this:

AVIF is an ad hoc agreement from an industry coalition interested in web media delivery. There are literally no individuals or governments participating, only big internet media corporations and companies producing solutions for internet media needs.

JPEG XL is an international standard related to a larger field of interests (photography, print, industrial quality assurance imaging, multi-spectral imaging, space technology, heat cameras, mastering, raw-like imaging, medical imaging, storage, archiving, media delivery, government needs, ...). Participation fee is moderage and individuals can participate.

Re:JPEG XL support has officially been removed from Chromium by lifthrasiir on Saturday December 10, 2022 @01:56PM (#33935567)
I don't know where you did get that impression but JPEG XL has written specifications which is exactly the standard.
Re:JPEG XL support has officially been removed from Chromium by ddevault on Saturday December 10, 2022 @02:01PM (#33935616)
Have you actually tried to read them? They don't exist.

https://jpeg.org/jpegxl/

https://jpeg.org/jpegxl/documentation.html

All we have is a whitepaper.

Re:JPEG XL support has officially been removed from Chromium by lifthrasiir on Saturday December 10, 2022 @02:06PM (#33935681)
I'm the author of the first independent reimplementation of JPEG XL [1] and I have definitely read all of them. Do you want to criticize the lack of openly available standards? In which case developers have given recent (and generally better) drafts to anyone interested so it's practically open, though a formal action by JPEG would be more desirable.

[1] Previously on HN: https://news.ycombinator.com/item?id=32885509

Re:JPEG XL support has officially been removed from Chromium by ddevault on Saturday December 10, 2022 @02:08PM (#33935692)
I'm going to say this as politely as I am able: closed standards can eat a big, steaming plate of shit. If it's not open, it doesn't exist. Period.
Re:JPEG XL support has officially been removed from Chromium by lifthrasiir on Saturday December 10, 2022 @02:15PM (#33935773)
If that's the intention you can update your original comment to say the "open" standard, because your definition of standard is not universal. And then I would have instantly agreed because I've experienced this firsthand.

Besides from that technicality though, do you really think that publicly available standards would have changed the situation? I don't think so---Chrome (and to be clear, most other browsers) has supported tons of closed standards anyway.

Re:JPEG XL support has officially been removed from Chromium by ddevault on Saturday December 10, 2022 @03:14PM (#33936371)
> If that's the intention you can update your original comment to say the "open" standard, because your definition of standard is not universal. And then I would have instantly agreed because I've experienced this firsthand.

No. A closed standard is not a standard.

> Besides from that technicality though, do you really think that publicly available standards would have changed the situation? I don't think so---Chrome (and to be clear, most other browsers) has supported tons of closed standards anyway.

I think it might have helped, yes.

Re:JPEG XL support has officially been removed from Chromium by lifthrasiir on Saturday December 10, 2022 @03:18PM (#33936412)
> I think it might have helped, yes.

Please elaborate.

Re:JPEG XL support has officially been removed from Chromium by jonsneyers on Saturday December 10, 2022 @02:24PM (#33935848)
As an editor of the JPEG XL spec, I fully agree that ISO's paywall policy is bad in many ways.

But I wouldn't say it's a "closed" standard. Not any more closed than, say, the C++ standard or the Unicode standard. What makes a standard open is not the price the publisher puts on the copies, imo, but how transparent and open the process is to design and change the standard, and whether it is possible or not to implement and use the standard for free or not. In that regard, I would consider JPEG XL just as open a standard as C++ or Unicode.

The HEVC spec is publicly available without paywall, but you cannot freely implement and use this standard since it's a patent encumbered, very non-royalty-free codec. I consider it a closed standard for that reason, and the spec being available for free (but not implementable without paying royalties) does not make much of a difference imo.

Re:JPEG XL support has officially been removed from Chromium by feffe on Sunday December 11, 2022 @06:38AM (#33942341)
There are many contradicting examples:

The original JPEG standard is an ISO standard (ISO/IEC 10918) with payed access.

MP3 is also an ISO standard (ISO/IEC 13818-3). Perhaps not as relevant today but was once used by basically everyone.

Access to the standard is only relevant to the implementer. It's of no consequence to users of a piece of software.

Re:JPEG XL support has officially been removed from Chromium by ksec on Saturday December 10, 2022 @11:29PM (#33940086)
Sorry Drew, disagree here. But also not surprised.

Open Standard does not mean Free Standard. As much as I would want the Final Spec 1.0 to be freely available.

Re:JPEG XL support has officially been removed from Chromium by jonsneyers on Saturday December 10, 2022 @02:14PM (#33935767)
JPEG XL is an approved international standard: ISO/IEC 18181

https://www.iso.org/standard/77977.html

Anyone interested in doing an independent implementation can use this specification (or a recent draft of the upcoming 2nd edition). Alternatively, you can look at the source code of one of the three JPEG XL implementations currently available: libjxl, J40, and jxlatte. These are all open-source, and in a way that's an executable specification.

Re:JPEG XL support has officially been removed from Chromium by Mindless2112 on Saturday December 10, 2022 @10:32PM (#33939787)
Where does one find a recent draft?
Re:JPEG XL support has officially been removed from Chromium by ddevault on Saturday December 10, 2022 @03:15PM (#33936374)
ISO standards are not standards. Closed standards are not standards. Implementations are not a standard. This is a bad joke.
Re:JPEG XL support has officially been removed from Chromium by erk__ on Saturday December 10, 2022 @03:38PM (#33936561)
What is a closed standard from your point of view?

Is it simply just one that cost money to access?

If I made a language standard on my own it would not be a open standard from quite a few orgs point of view. It is annoying that you are just throwing around vague use of words without giving a clear definition.

Re:JPEG XL support has officially been removed from Chromium by ddevault on Saturday December 10, 2022 @04:35PM (#33937073)
A closed standard is not a standard. That's it. It's a document of little to no relevance that may as well not exist.
Re:JPEG XL support has officially been removed from Chromium by lifthrasiir on Saturday December 10, 2022 @05:02PM (#33937344)
ISO 7010 is an ISO standard for graphical hazard and safety signs. It is literally everywhere, well not everywhere because there are some exceptions but still used in a majority of the world and therefore has an enormous relevance. And it is closed by your definition; you have no way to freely obtain it. Now please explain an apparent discrepancy between your claim and the reality, and also do not ignore my prior request to elaborate how publicly available standards may have helped this particular situation with Google.
Re:JPEG XL support has officially been removed from Chromium by erk__ on Saturday December 10, 2022 @04:47PM (#33937187)
You are being incredibly inarticulate, or you are just arguing in bad faith.

What is a closed standard?

Also the world run on those documents with little to no relevance, no matter how much people dislike how you need to pay to view them. It is a sad state of affairs.

If you actually wanted to make changes you would lobby for it, you are just saying they don't exist which is of little help to change the status quo.

Re:JPEG XL support has officially been removed from Chromium by jonsneyers on Saturday December 10, 2022 @06:21PM (#33938136)
Have you signed this open letter already?

https://www.theregister.com/2021/07/31/iso_paywall_battle/

Re:JPEG XL support has officially been removed from Chromium by iLoveOncall on Saturday December 10, 2022 @10:25AM (#33933364)
JPEG XL was not used anywhere which is why it got deprecated. It was never gonna be the future of anything.
Re:JPEG XL support has officially been removed from Chromium by scorpio241 on Saturday December 10, 2022 @10:40AM (#33933504)
Not used anywhere? E.g. Affinity Photo has support for JPEG XL, but not for AVIF. Not used in browsers because they are nearly controlled by Chromium, which is clearly biased toward AVIF. https://en.wikipedia.org/wiki/JPEG_XL#Official_support Official support:

    Squoosh – In-browser image converter[42]
    Adobe Camera Raw – Adobe Photoshop's import/export for digital camera images[43]
    Affinity Photo – raster graphics editor[44]
    Chasys Draw IES – raster graphics editor[45]
    Darktable – raw photo management application[46]
    ExifTool – metadata editor[47]
    FFmpeg – multimedia framework, via libjxl[48]
    GIMP – raster graphics editor[49]
    gThumb – image viewer and photo management application for Linux[50]
    ImageMagick – toolkit for raster graphics processing[51]
    IrfanView – image viewer and editor for Windows[52]
    KaOS – Linux distribution[53]
    Krita – raster graphics editor[54][55]
    libvips – image processing library[56][57]
    vipsdisp – high-performance ultra-high-resolution image viewer for Linux[58]
    Qt and KDE apps – via KImageFormats[59]
    XnView MP – viewer and editor of raster graphics[60]
    Pale Moon – web browser[61]
Re:JPEG XL support has officially been removed from Chromium by gjsman-1000 on Saturday December 10, 2022 @11:39AM (#33934021)
There's only one issue with this list - many of these applications also support AVIF, and were "sitting on the fence" over the issue, which should not be interpreted as a sign of JXL's success. And the ones that don't are very likely to fall in line after the Chromium decision.
Re:JPEG XL support has officially been removed from Chromium by masklinn on Saturday December 10, 2022 @11:45AM (#33934078)
> Not used anywhere? E.g. Affinity Photo has support for JPEG XL, but not for AVIF.

It also support PSDs. Should Chrome support PSDs?

> Not used in browsers because they are nearly controlled by Chromium, which is clearly biased toward AVIF.

Ah yes, Google, a major contributor to JXL, is "clearly biased towards AVIF".

I'm sure you'll find your saviours at Apple (governing member of AOM, shipped AVIF this year), Mozilla (governing member of AOM, shipped AVIF in June 2020, default-enabled in October 2021), or Microsoft (governing member of AOM).

Re:JPEG XL support has officially been removed from Chromium by dmitriid on Saturday December 10, 2022 @03:51PM (#33936655)
> Ah yes, Google, a major contributor to JXL, is "clearly biased towards AVIF".

Why is it surprising to you? Many major companies are contributors to a bunch of standards that they don't end up supporting. Meanwhile Google is forcing device manufacturers to support its codecs in hardware on pain of sanctions and removing support and software. Guess which codec Google wants them to support (hint: AV1)

Re:JPEG XL support has officially been removed from Chromium by Earwig on Saturday December 10, 2022 @01:23PM (#33935166)
> Should Chrome support PSDs?

PSD is a pretty heavy format, and does not have the benefits for serving images to end users (e.g. good compression) that JPEG XL/AVIF have. So probably not. But there are still use cases for serving PSDs on the web in creative communities, so it would be pretty cool to have.

Re:JPEG XL support has officially been removed from Chromium by ck45 on Saturday December 10, 2022 @10:29AM (#33933403)
I linked https://cloudinary.com/blog/the-case-for-jpeg-xl in another comment which links to several big players requesting full JPEG XL support. It seems the reason why it wasn't adopted more broadly is that there was no full support for it in Chrome. I wouldn't even consider it a chicken and egg situation.
Re:JPEG XL support has officially been removed from Chromium by wpietri on Saturday December 10, 2022 @10:45AM (#33933554)
Thanks for this. I looked through the big-player comments and the one I found most persuasive was from Shopify, who had specific, practical reasons for needing this: https://bugs.chromium.org/p/chromium/issues/detail?id=117805...
Re:JPEG XL support has officially been removed from Chromium by flak48 on Saturday December 10, 2022 @11:04AM (#33933709)
The reply by the Chromium engineer (from Google? - I'm not sure) to a long thread of people from several companies quantifying the benefits of JPEG XL and requesting that it be supported is just sad:

> Thank you everyone for your comments and feedback regarding JPEG XL. We will be removing the JPEG XL code and flag from Chromium for the following reasons:

> - Experimental flags and code should not remain indefinitely

> - There is not enough interest from the entire ecosystem to continue experimenting with JPEG XL > - The new image format does not bring sufficient increm ental benefits over > existing formats to warrant enabling it by default

> - By removing the flag and the code in M110, it reduces the maintenance burden and allows us to focus on improving existing formats in Chrome

---

If I were to put on my tinfoil hat, I would imagine the people involved here are desperate to put 'Removed unused code and removed maintenance burden by X%' in there performance reviews for this year

Re:JPEG XL support has officially been removed from Chromium by arglebargle123 on Saturday December 10, 2022 @11:45AM (#33934079)
There's not much to tinfoil hat about here, Google is killing jxl in favor of a format they control: webp.
Re:JPEG XL support has officially been removed from Chromium by iLoveOncall on Saturday December 10, 2022 @10:36AM (#33933464)
Your link doesn't mention anyone asking for it.

Also AVIF is more performant for most cases. Lossless is not what matters on the web.

Re:JPEG XL support has officially been removed from Chromium by ck45 on Saturday December 10, 2022 @10:41AM (#33933514)
It contains 8 links to the Chromium bugtracker in this paragraph:

However, if the enthusiastic support in the Chromium bugtracker from Facebook, Adobe, Intel and VESA, Krita, The Guardian, libvips, Cloudinary, and Shopify is any indication, it seems baffling to conclude that there would be insufficient ecosystem interest.

That's why I assumed there was demand for JPEG XL.

Re:JPEG XL support has officially been removed from Chromium by pushrax on Saturday December 10, 2022 @10:43AM (#33933544)
JPEG XL implements lossless image compression, but that's definitely not the most interesting feature. It also implements lossless JPEG recompression. So your existing JPEGs can be served with ~20% less bandwidth, without quality loss.

Unlike AVIF, JPEG XL also has advanced progressive delivery features, which is useful for the web. And if you look at the testing described in the post, JPEG XL also achieved higher subjective quality per compressed bit, despite having a faster encoder.

Re:JPEG XL support has officially been removed from Chromium by 149764 on Saturday December 10, 2022 @10:50AM (#33933603)
JPEG XL supports lossless, lossy and lossless JPEG recompression.

You can see lossless benchmarks against other formats here:

https://docs.google.com/spreadsheets/d/1ju4q1WkaXT7WoxZINmQp...

Re:JPEG XL support has officially been removed from Chromium by astrange on Saturday December 10, 2022 @12:17PM (#33934401)
Lossless JPEG recompression, if it’s so good, can be done at the HTTP layer.

If a new image format doesn’t have a hardware decoder it’s dead. The security surface of new formats is unacceptable if it’s going to be slow and power-hungry too.

Only problem with JPEG is the lack of HDR.

Re:JPEG XL support has officially been removed from Chromium by JyrkiAlakuijala on Sunday December 11, 2022 @10:35AM (#33944005)
JPEG XL as a HTTP Content Encoding:

1) transfer JPEG XL,

2) decode the JPEG XL to DCT coefficients,

3) encode a new JPEG1 file

4) decode the new JPEG1 file

5) render pixels

JPEG XL as image format:

1) transfer JPEG XL

2) decode the JPEG XL to DCT coefficients

3) render pixels

Two additional coding steps (3 and 4) are needed in the HTTP Content Encoding approach. If we want to transfer lossless JPEG1s, it is less computation and a faster approach to add JPEG XL as an image codec.

If JPEG XL is too powerful and creates danger for AVIF, then one possibility is to remove features such as adaptive quantization, lossless encoding and larger (non-8x8) DCTs. This effectively makes JPEG XL as JPEG1 recompressor as an image codec.

Also, JPEG XL's reference implementation (libjxl) has a more accurate JPEG1 decoder than any other existing implementation. Asking someone else to paint the pixels leads to worse quality (about 8 % worse).

Re:JPEG XL support has officially been removed from Chromium by JyrkiAlakuijala on Saturday December 10, 2022 @10:46AM (#33933561)
Nope. In my eyes AVIF is not more performance. It makes photos suffer and become blurry, especially so in highly saturated areas, skin, marble, vegetation. Once beautiful things start to look like cheap plastic.
Re:JPEG XL support has officially been removed from Chromium by gjsman-1000 on Saturday December 10, 2022 @11:50AM (#33934118)
Check the file size - anything will look bad if you set the compression too high. If you see AVIF images with some artifacting, find a JPEG of the same image and compare file sizes. An AVIF the same size as a JPEG will be better than the JPEG - an AVIF only 50% of the size will probably be visually undetectable to most people. An AVIF only 20% of the size... you'll tell. Same for JXL - if I set my JXL to compress to only 15% of the size of the JPEG, it's hardly a fair comparison.
Re:JPEG XL support has officially been removed from Chromium by JyrkiAlakuijala on Saturday December 10, 2022 @05:26PM (#33937586)
For my eyes:

AVIF fails to deliver a consistent experience at 3+ BPP -- I'd hate to compress my family pictures at AVIF even at high BPP, some part is smudged in a weird way.

libjpeg-turbo and mozjpeg does deliver a consistent experience at 4 BPP

guetzli and jpegli delivers a consistent experience at 3 BPP

JPEG XL delivers a consistent experience at 1.7 BPP

Re:JPEG XL support has officially been removed from Chromium by ksec on Saturday December 10, 2022 @11:35PM (#33940126)
>Also AVIF is more performant for most cases.

Source? JPEG XL has already shown, over 10,000 sample size and over a wide variety of BPP to be better than AVIF, on latest JPEG And AVIF versions.

AVIF, on the other hand, has yet to shown anything similar.

Re:JPEG XL support has officially been removed from Chromium by mort96 on Saturday December 10, 2022 @10:41AM (#33933515)
JPEG XL was not used anywhere on the web because no browser shipped with JXL support. As soon as Google enabled it in Chrome, Mozilla in Firefox or Apple in Safari, we would've started to see adoption.
Re:JPEG XL support has officially been removed from Chromium by JyrkiAlakuijala on Saturday December 10, 2022 @10:48AM (#33933580)
Previously yes. Two browsers have now added support.
Re:JPEG XL support has officially been removed from Chromium by mort96 on Saturday December 10, 2022 @10:49AM (#33933597)
No? Every single browser on caniuse has either no JXL support at all or has it disabled by default: https://caniuse.com/jpegxl
Re:JPEG XL support has officially been removed from Chromium by lifthrasiir on Saturday December 10, 2022 @12:37PM (#33934618)
I don't know another, but Pale Moon does support it so your original statement is just false. And it can be actually a good way to test a proposed patch to Gecko---many issues were found and fixed after it first got JPEG XL.
Re:JPEG XL support has officially been removed from Chromium by rhdunn on Saturday December 10, 2022 @10:55AM (#33933644)
It's not used anywhere because it is/was behind a feature flag so browsers didn't support it out of the box. IIUC, various companies like BBC, Facebook, and others were ready to deploy JPEG XL support.

If you take your approach, nothing new (including the webp standard that Google/Chrome pushed) would be released on the web because nothing is using it.

Re:JPEG XL support has officially been removed from Chromium by astrange on Saturday December 10, 2022 @12:19PM (#33934419)
WebP should not have been released and no one should have used it. Google should stop letting individual employees invent new image formats as hobbies. (This happened _twice_. WebP lossless is a whole different codec from lossy.)

AVIF is the first one that might be acceptable.

Re:JPEG XL support has officially been removed from Chromium by JyrkiAlakuijala on Sunday December 11, 2022 @09:11AM (#33943329)
Another take on this:

AVIF is a Netflix engineer quick-hacking a video format as an image format -- without actual experience in codec design, image compression or psychovisual research, without consulting such people to get the design right. When size and memory limitations were noticed, a tiled approach was proposed where globally spanning artefacts through the image will emerge. No one has been able to propose a fix for this and other kludges yet.

AVIF doesn't match WebP lossless in density, even given the 10 years more of compression research. AVIF doesn't even beat PNG at lossless, which itself was hacked together in a few months ~25 years earlier (primitive filtering, mixing filter bytes with image data, botched 16 bits compression, layering a primitive 1980's byte-compressor and filtering instead of designing a codec).

Re:JPEG XL support has officially been removed from Chromium by ksec on Saturday December 10, 2022 @11:37PM (#33940146)
I am glad I am not the only one seeing it. While in extreme minorities, still happy to be this view is not some insanity as many claims to be.
Re:JPEG XL support has officially been removed from Chromium by croes on Saturday December 10, 2022 @10:41AM (#33933517)
I wonder why nobody used a hidden feature that needed to be activated manually.
Re:JPEG XL support has officially been removed from Chromium by hmry on Saturday December 10, 2022 @10:29AM (#33933404)
It is supported by every image manipulation program I use on a regular basis. Photoshop, Krita, EOG, IrfanView. That's enough for me.
Re:JPEG XL support has officially been removed from Chromium by iLoveOncall on Saturday December 10, 2022 @10:37AM (#33933476)
This is irrelevant, what matters is the consumption of the format, not its production.
Re:JPEG XL support has officially been removed from Chromium by hmry on Saturday December 10, 2022 @10:42AM (#33933532)
Isn't that circular reasoning? Chrome shouldn't support JPEG-XL because not enough consumers support it? Chrome is the number one consumer of images. If Chrome added support, suddenly 90% of people would be able to use the format.

(Also EOG and IrfanView are image viewers, not production tools.)

Re:JPEG XL support has officially been removed from Chromium by wpietri on Saturday December 10, 2022 @10:49AM (#33933589)
Yeah, to me this is another sign that Chrome's dominance is a menace to the open web. Whatever the best outcome is here, it's very concerning to me that a possibly important improvement can be blocked with so little meaningful explanation.
Re:JPEG XL support has officially been removed from Chromium by arglebargle123 on Saturday December 10, 2022 @11:47AM (#33934102)
The explanation is pretty plain: google controls the webp format, jxl competes with webp.
Re:JPEG XL support has officially been removed from Chromium by quikee on Saturday December 10, 2022 @10:46PM (#33939854)
In what way does Google control WebP? They have frozen the format and nothing will be added to it. WebP2 was abandoned. Google is also involved with JPEG XL - actually some developers that worked on WebP now work on JPEG XL.

If someone controls something it is the Chromium/AOM/AVIF/AV1 team that controls and decides what multimedia formats go inside Chrome/Chromium thus controlling what is used on the web and ignoring what the web community has to say about it.

Re:JPEG XL support has officially been removed from Chromium by croes on Saturday December 10, 2022 @10:43AM (#33933546)
Consumption wasn't possible in standard Chrome. So that's hardly a benchmark.
Re:JPEG XL support has officially been removed from Chromium by lajamerr on Saturday December 10, 2022 @10:40AM (#33933501)
Can't really consume it if it's locked behind a flag. 99% of chrome users never touch the flags at all.
Re:JPEG XL support has officially been removed from Chromium by rhdunn on Saturday December 10, 2022 @10:59AM (#33933677)
In that case WebP, CSS grid, CSS shadow DOM, HTML5, or any other new feature on the web would be untennable (esp. if deployed behind a feature flag first) because when those were created and implemented in browsers there was no uses/consumption of them.
Re:JPEG XL support has officially been removed from Chromium by sitkack on Saturday December 10, 2022 @10:33AM (#33933446)
It isn't going to be used anywhere when it is behind a flag.
Re:JPEG XL support has officially been removed from Chromium by sb057 on Saturday December 10, 2022 @04:09PM (#33936820)
WebM, VP8/9, WebP, and for that matter MP4, MP3, and the original JPEG weren't used anywhere until there was support for them.
Re:JPEG XL support has officially been removed from Chromium by greggarious on Saturday December 10, 2022 @12:06PM (#33934270)
Was it patent encumbered?
Re:JPEG XL support has officially been removed from Chromium by ksec on Saturday December 10, 2022 @12:23PM (#33934448)
From the views of ISO, JPEG Committees, no, they are not patent encumbered.

From the view of AOM members or supporters, yes they are or at least not clear.

Re:JPEG XL support has officially been removed from Chromium by jonsneyers on Saturday December 10, 2022 @02:30PM (#33935905)
Do you have any sources on that? And who would be the one making any claims relevant to JPEG XL or asking for royalties?

Because I have not seen anyone other than Cloudinary and Google declare to have patents relevant to JPEG XL, and those two parties have explicitly granted royalty-free licenses. So to me the situation is as clear as it gets.

Of course it can always happen with anything less than 20 years old that a patent troll appears and makes claims. This has not happened yet though in the case of JPEG XL.

Re:JPEG XL support has officially been removed from Chromium by greggarious on Saturday December 10, 2022 @01:00PM (#33934885)
>From the view of AOM members or supporters, yes they are or at least not clear.

Sounds complicated. Why not PNG? :-)

Re:JPEG XL support has officially been removed from Chromium by masklinn on Saturday December 10, 2022 @01:56PM (#33935557)
PNG is really bad for anything photographic. As in, it's pixel-perfect, and the images are also absolutely enormous, unusably so.
Re:JPEG XL support has officially been removed from Chromium by rezonant on Saturday December 10, 2022 @01:34PM (#33935298)
PNG, while being a very nice format, is dramatically larger than JPEG, JPEG-XL, AVIF, HEIF etc. For multi-megapixel images that size cost adds up.
Re:JPEG XL support has officially been removed from Chromium by bob1029 on Saturday December 10, 2022 @10:49AM (#33933594)
> I think I will continue using it with WASM polyfills

This is the answer. You can also build your own application-specific codecs this way.

I've been exploring a variation of jpeg/mpeg that uses arithmetic coding and larger block sizes. Virtually all of the fun patented stuff we couldn't use in the early 00's is in the public domain now.

Re:JPEG XL support has officially been removed from Chromium by superkuh on Saturday December 10, 2022 @11:44AM (#33934056)
The only thing worse than an image that won't display without javascript is an image that doesn't even exist without webassembly. I get that google has removed support so you're looking for other options but maybe consider putting up an announcement on your site(s) that google chrome is not supported instead of making it worse for all other browsers.
Re:JPEG XL support has officially been removed from Chromium by bob1029 on Saturday December 10, 2022 @12:05PM (#33934267)
> I get that google has removed support so you're looking for other options but maybe consider putting up an announcement on your site(s) that google chrome is not supported instead of making it worse for all other browsers.

I have no horse in the JPEG XL race. I am not even necessarily focused on images. I see value in using WASM (and/or JS) for application-specific codecs. That is all.

None of my decisions have any ability to make things "worse" for other browsers, especially when those browser vendors never intended to support my application-specific codec to begin with.

Re:JPEG XL support has officially been removed from Chromium by charcircuit on Saturday December 10, 2022 @01:30PM (#33935245)
>making it worse for all other browsers.

What other browsers? Desktop Firefox users who changed a flag in about:config? That's practically nobody.

Re:JPEG XL support has officially been removed from Chromium by h4x0rr on Saturday December 10, 2022 @01:57PM (#33935573)
Also, chrome(/ium) has like 70% market share. Not supporting it is pretty much the equivalent of shooting yourself in the foot.
Re:JPEG XL support has officially been removed from Chromium by superkuh on Sunday December 11, 2022 @05:01PM (#33948043)
If you're only making websites for profit, yes. If you're a human person making websites for other humans then only targeting the standards breaking Chrome is bad for you and them. Gotta be the change you want to see in the world. Even if you know everyone else is doing the wrong thing for profit.
Re:JPEG XL support has officially been removed from Chromium by lifthrasiir on Saturday December 10, 2022 @11:41AM (#33934031)
One of the main benefits of JPEG XL is a superior progressive decoding and polyfills won't be never able to replicate that feature.
Re:JPEG XL support has officially been removed from Chromium by Sephr on Saturday December 10, 2022 @11:57AM (#33934179)
Why do you think that polyfills can't implement progressive decoding?

It's simply a matter of using <canvas> for progressive rendering.

Re:JPEG XL support has officially been removed from Chromium by lifthrasiir on Saturday December 10, 2022 @12:09PM (#33934308)
Canvas has to retain all pixels unconditionally, unlike native images that can be unloaded from memory as needed. It is technically possible to implement all other features (using service workers or CSS Houdini), but tons of limitations apply and can easily outstrip supposed benefits.
Re:JPEG XL support has officially been removed from Chromium by supermatt on Saturday December 10, 2022 @12:18PM (#33934414)
Can't you just read the stream and emit the images(s) as they get downloaded to be rendered in a canvas - exactly as a native implementation would do?
Re:JPEG XL support has officially been removed from Chromium by lifthrasiir on Saturday December 10, 2022 @12:35PM (#33934584)
My comment was apparently too concise to give you a sense of complications. I can think of those concrete problems:

- Rendering images from a different origin without CORS. This is a fundamental limitation of any JS or WebAssembly solution and can't be fixed. Thankfully this use case is relatively rare.

- Not all approaches can provide a seamless upgrade. For example if you replace all `<img src="foo.jxl">` with a canvas DOM will be changed and anything expecting the element to be HTMLImageElement will break. Likewise, CSS Painting API [1] (a relevant part of CSS Houdini) requires you to explicitly write `paint(foo)` everywhere. The only seamless solution will be therefore a service worker, but it can't introduce any new image format; it can only convert to natively supported formats. And browsers currently don't have a "raw" image format for this purpose. JXL.js [2] for example had to use JPEG as a delivery format because other formats were too slow, as I've been told.

- It is very hard to check if a certain image is visible or not, and react accordingly. This is what I intended to imply by saying that canvas has to unconditionally retain all pixels, because if implementations can't decide if it's safe to unload images, they can't do so and memory will contain invisible images in the form of canvases. Browsers do have a ground truth and so can safely unload currently invisible images from memory when the memory pressure is high.

[1] https://developer.mozilla.org/en-US/docs/Web/API/CSS_Paintin...

[2] https://github.com/niutech/jxl.js

Re:JPEG XL support has officially been removed from Chromium by Sephr on Sunday December 11, 2022 @12:04AM (#33940300)
> Not all approaches can provide a seamless upgrade. For example if you replace all `<img src="foo.jxl">` with a canvas DOM will be changed and anything expecting the element to be HTMLImageElement will break. Likewise, CSS Painting API [1] (a relevant part of CSS Houdini) requires you to explicitly write `paint(foo)` everywhere. The only seamless solution will be therefore a service worker, but it can't introduce any new image format; it can only convert to natively supported formats. And browsers currently don't have a "raw" image format for this purpose. JXL.js [2] for example had to use JPEG as a delivery format because other formats were too slow, as I've been told.

You can get around many these compatibility issues by creating a custom element that inherits from HTMLImageElement. This provides API compatibility. For CSS compatibility, the elements you would replace in a MutationObserver would be the same tag name but a different namespace for CSS compatibility.

For the CSS compatibility trick, see https://eligrey.com/demos/hotlink.js/ which replaces images with CSS-compatible (not HTMLImageElement-compatible) iframes.

> - It is very hard to check if a certain image is visible or not, and react accordingly.

You can use Element.checkVisibility()¹ and the contentvisibilityautostatechanged event²𝄒³ to do this. Browser support is currently limited to Chromium-based browsers.

1. https://drafts.csswg.org/cssom-view/#dom-element-checkvisibi...

2. https://github.com/vmpstr/web-proposals/blob/main/explainers...

3. https://caniuse.com/mdn-api_element_contentvisibilityautosta...

Re:JPEG XL support has officially been removed from Chromium by lifthrasiir on Sunday December 11, 2022 @01:37AM (#33940706)
Thank you for pointing out contentvisibilityautostatechanged, I was aware of `content-visibility` but didn't know that it has an associated event. I'm less sure about CSS compatibility, hotlink.js for example used an iframe which opens a whole can of worms.
Re:JPEG XL support has officially been removed from Chromium by niutech on Monday December 12, 2022 @07:15PM (#33962568)
I've just added a config parameter to JXL.js for choosing the target image type: JPG/PNG/WebP. Keep in mind that PNGs can take a lot memory!
Re:JPEG XL support has officially been removed from Chromium by supermatt on Saturday December 10, 2022 @12:48PM (#33934736)
You dont need to replace the img with canvas DOM - you can capture the canvas output as a dataURL.
Re:JPEG XL support has officially been removed from Chromium by rezonant on Saturday December 10, 2022 @01:32PM (#33935279)
Can't reply to the reply to your reply but... Blobs can be used here and avoid the inefficiency of data URL conversions
Re:JPEG XL support has officially been removed from Chromium by niutech on Monday December 12, 2022 @07:09PM (#33962486)
This is exactly what I use in my JXL.js, as well as Web Workers and OfflineCanvas.
Re:JPEG XL support has officially been removed from Chromium by supermatt on Saturday December 10, 2022 @01:38PM (#33935353)
Thanks for the tip! (Not for jpegXL specifically, but ill definitely check that out and update some code where i use dataURLs instead of objectURLs accordingly)
Re:JPEG XL support has officially been removed from Chromium by lifthrasiir on Saturday December 10, 2022 @01:05PM (#33934948)
You can, but that is hugely inefficient. Any additional draw to the canvas has to generate a data URL for the image to be progressively decoded.
Re:JPEG XL support has officially been removed from Chromium by charcircuit on Saturday December 10, 2022 @01:33PM (#33935295)
>It is very hard to check if a certain image is visible or not

Canvases are rectangles. The viewport is a rectangle. Checking if rectangles overlap is easy.

Re:JPEG XL support has officially been removed from Chromium by lifthrasiir on Saturday December 10, 2022 @02:03PM (#33935641)
The image is visible != the canvas and viewport overlaps, and this is not even a good enough approximation (the image can be obscured by other layers for example). Intersection Observer v2 takes us a bit closer but the visibility in this definition (not obscured at all) doesn't fully agree with what we want (has some pixels visible, some false positives allowed).
Re:JPEG XL support has officially been removed from Chromium by niutech on Monday December 12, 2022 @07:08PM (#33962469)
This is what I did with JXL.js Multithread (https://github.com/niutech/jxl.js#multithread-version) - but instead of <canvas> I am pushing the blob to the <img>.
Re:JPEG XL support has officially been removed from Chromium by devwastaken on Saturday December 10, 2022 @01:38PM (#33935355)
Do not do this. Your website will become very slow. Wasm does not have the hardware acceleration necessary to efficiently do codecs.
Re:JPEG XL support has officially been removed from Chromium by bob1029 on Saturday December 10, 2022 @02:36PM (#33935966)
> Wasm does not have the hardware acceleration necessary to efficiently do codecs.

See: https://jsmpeg.com

and: https://jsmpeg.com/perf.html