Settings

Theme

macOS 14 will support JPEG XL

twitter.com

318 points by biggestfan 3 years ago · 122 comments

Reader

amoerie 3 years ago

As a radiology software developer: please please let JPEG XL become a thing. I sincerely hope this might make Chrome change its mind. JPEG XL is a game changer for 16 bit lossless images. The technical landscape for these kinds of images today is barren.

  • PaulHoule 3 years ago

    As a mirrorless photographer who wants to publish photos on the web that look like they came out of a mirrorless camera I want JPEG XL. In trials I've done, AVIF works well for a throwaway splash image for a blog but compression results are not so impressive compared to JPEG or WEBP if you want the image to hold up under close inspection.

    On the other hand there is something that seems almost infantile about image support in the "operating system" being pivotal. If you read a review of a new MacOS in ArsTechnica you might get the idea that 99% of an OS is about what the buttons look like but in terms of the computer science definition, image codecs are definitely a userspace thing and as a Windows or Linux user I never wait for my OS to support an image format, I just install the codec and code away.

    • lucideer 3 years ago

      You're using the term "OS" but you're not talking about OSes you're talking about kernels.

      The OS is what comes with the computer or gets installed in the default setup if you're installing yourself. Most of it is userspace.

      Distros like Arch & Gentoo allow you to build a custom OS which in doing so blurs the definition quite a lot, but ultimately when people say "macOS" that term includes quite a lot of userspace things. Bundled software is absolutely a core part of every popularly used definition of the word "OS".

    • kps 3 years ago

      As an ‘operating system’ OS X includes user space tools like the Finder and Quick Look in particular where vendor support is helpful.

    • cameldrv 3 years ago

      Yes image codecs are a user space thing, but a Mac or iOS app probably loads images using the Swift Image or UIImage class and passes it a filename, and then these same objects get passed to the display widgets to render. If the UI toolkit that ships with the OS supports a format, it will just work with most all of the apps that use the system UI toolkit.

    • colechristensen 3 years ago

      There’s just not a lot left besides user experience and appearance for an OS to do.

      Of course kennels and operating systems are highly complex and represent a ton of work… but what is left to impress with a press release?

      My OS does everything I can imagine needing it to and the only thing I can imagine wanting it to do going forward is more or less just maintenance (UX/UI excluded)

    • woah 3 years ago

      Dumb question, but why is OS or browser support necessary? Couldn't an HTML canvas element and some JS that can parse the file format display any kind of image that you might want?

      • spiralpolitik 3 years ago

        On MacOS/iOS the ImageIO framework handles encoding and decoding images. Adding support for your image format to that framework means everything else just works once the image is decoded.

        Another framework, CoreImage, provides generic operations to filter and transform images decoded by ImageIO. This provides hardware acceleration and other good stuff that make things like CSS transforms super fast and efficient.

        While it can be done in JavaScript it would be much much slower, less efficient, and kill your battery.

      • Scaevolus 3 years ago

        There's a JS/WASM polyfill for JXL, but it involves some fragile hacks like MutationObserver and canvas writes, has worse performance than native code, and tends to crash Chrome.

      • coldtea 3 years ago

        Yes, if you don't care for loading speed, battery life, and the fans blazing...

      • majora2007 3 years ago

        Canvas has hard caps on the size it can be as well and when resizing an image to a fixed size, there is a lot of hard edges as you need to implement your own smoothing. Image tag is more flexible and versatile.

      • JyrkiAlakuijala 3 years ago

        HDR and progression are difficult to do right now. Possible interplay with CPU/GPU in rendering is difficult. JS is executed later than html is parsed.

      • ianlevesque 3 years ago

        A canvas element is not as performant as an image element.

        • PaulHoule 3 years ago

          When I am serious about images it is all about high performance: upgrading to better data compression (1) speeds up the network and server and reduces (2) network and (3) storage costs. (4) Decompression of the image is another bottleneck and a soft decoder is itself something to download and compile locally.

          If you use a high-powered device you might not appreciate that performance of a low-end Android device hasn't really improved since 2017. I test with an Android Go device that does pretty well if you feed it scaled images but would struggle with the soft decoder.

          The native implementation of the decompressor can be much better than one in WebAssembly in that it can use SIMD units on the CPU and many other tricks, including special purpose hardware. That's why Apple is so keen to say that an image format is now supported in the OS, because they codesign the hardware, the OS and the file formats to take advantage of all that.

      • ShadowBanThis01 3 years ago

        Why down-mod this straightforward question?

        Come on, people.

    • est 3 years ago

      > publish photos on the web that look like they came out of a mirrorless camera I want JPEG XL

      Any comparision photos out there?

    • coldtea 3 years ago

      >As a mirrorless photographer who wants to publish photos on the web that look like they came out of a mirrorless camera I want JPEG XL.

      As if people would have the screen to properly watch them? Perhaps a handful of high-end laptop owners... Except if those are the intended audience.

      >image codecs are definitely a userspace thing and as a Windows or Linux user I never wait for my OS to support an image format, I just install the codec and code away.

      That's how you get half the apps supporting them (if you're lucky) and others not, and generally a hell of a time...

      • sparker72678 3 years ago

        There are hundreds of millions of recent iPhones with outstanding OLED displays out there.

        • coldtea 3 years ago

          Is your audience iPhone users? Or is it an progressive enhacement style thing?

          (Btw, there's nothing about this that's specific to mirrorless and wouldn't also apply to a DSLR with big dynamic range).

          • PaulHoule 3 years ago

            I'll go on the record and say that, unlike audio, where I'd be very concerned about the quality of speakers, I am not so concerned about the screen quality where my photographs are displayed. That is, even my Android Go device is "good enough" in that if you really need to see more detail you can zoom in.

            A better comparison with audio would be the terrible quality of a 64 kbps Mp3 file which is going to sound awful on the cheapest bluetooth speakers or a $5000 set of speakers compared to 128 kbps Mp3 which sounds OK superficially but falls apart when compared to the source CD, or higher bit rates which are close to transparent. Many images for the web are highly compressed but nobody really notices.

            My current boggle w/ screens is actually what to do with "high color gamut" screens like the one on my iPad. I am into red-cyan anaglyph images where the most important thing is getting separation between the left and right channels.

            https://en.wikipedia.org/wiki/Anaglyph_3D

            The green in a high color gamut display is more saturated than the sRGB primary so when you ask for sRGB green you get some red and blue mixed in which is an absolute disaster for a stereogram.

            The answer to this is to master a high color gamut image just for those devices and serve everyone else an sRGB. I will get around to it one day but it's been a higher priority for me to deal with the same problem in print, where the green on my printer is very saturated but also very dark and the color management system blends in some red to make it brighter. Turning off color management works but really I should be blending in some red into green areas of the left image because that will make the colors closer to the original and also help with stereo imaging by reducing the difference in brightness between the left and right channels.

            • saltminer 3 years ago

              > Many images for the web are highly compressed but nobody really notices.

              Or they do but they just assume that's the way things are. They don't know why an image that's been reposted from Facebook to Twitter to Instagram to Reddit to Imgur and back a dozen times has artifacting and color banding, and as long as they can still get the gist of the image, it doesn't matter to them. Besides, it's not like they can just ask the platform to magically fix the image, so they just don't think about it.

              In many cases, the original high quality source has been lost to 404s and unpaid webhosting bills. The original is probably still on someone's hard drive, but it's unlikely to be remembered, much less surface again, so compressed messes are all that's left.

              With JPEG XL, many of those compressed messes would be much closer to the original image due to its extremely strong generational loss resilience (see the webm attachment to [0]).

              JPEG XL is a massive step forward for images on the web for a number of reasons, but it has especially massive benefits when it comes to preserving image quality across the web. And this is especially true when you consider that you can reversibly reencode the billions of existing JPEGs on people's drives and on the web as JPEG-XLs losslessly for 20+% space savings [0].

              [0]: https://bugs.chromium.org/p/chromium/issues/detail?id=117805...

  • bick_nyers 3 years ago

    Ex-radiology software developer here, and seconded! J2K is good, but here are some advantages of JXL in the context of medical imaging:

    - Better compression ratios

    - Ability to modify effort of lossless compression (good for real time transcoding)

    - Multi-threaded encode and decode

    - Far superior progressive decoding (great for low bandwidth scenarios, just stream in the lossless quality over time)

  • alwillis 3 years ago

    > As a radiology software developer: please please let JPEG XL become a thing.

    If things with Apple go well and JPEG XL is supported natively on macOS, iOS and iPadOS this fall, it would be on its way to becoming a thing.

    After all, 2 billion devices isn't nothin’.

  • jez 3 years ago

    > I sincerely hope this might make Chrome change its mind.

    I take this to suggest that Chrome actively decided against implementing JPEG XL? Did they consider supporting it and reject support for it, or has it simply not been prioritized, but still might be prioritized one day?

    If the decision was intentional: did they state a reason why?

    • cjawdb 3 years ago

      This is the terrible explanation they gave for dropping support:

      https://bugs.chromium.org/p/chromium/issues/detail?id=117805...

      "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 incremental 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"

      The issue on the Chromium tracker is now one of the most-starred and most-commented-on of all time because people from all over came to tell Google that they're insane, from Intel to Adobe to Facebook to Krita to Cloudinary to Shopify to Serif/Affinity to the VESA DisplayHDR Chairman.

      It may also be worth noting that the author of commit to remove support from Chromium appears to be a WebP co-author, having given talks about WebP and being the primary contributor to libwebp.

      https://chromium-review.googlesource.com/c/chromium/src/+/40...

      https://chromium.googlesource.com/webm/libwebp/+log

      • account42 3 years ago

        WebP and libwebp/cwebp is such a clusterfuck. Lossless mode isn't even visually lossless because cwebp doesn't understand how PNGs encode color space information. Default lossy settings are extremely garbage for darker (parts of images) images - a problem that has plagued video codecs (which is what webp is based on) for a long time. Animated webp is ridiculously inefficient compared to webm and really shouldn't be a thing at all in favor of allowing silent+looping videos in image tags. And of course initial webp browser implementations don't even support animated webp but still claim support for image/webp so you can't even do progressive enhancement from gif to animated webp without hardcoding which browsers support what.

        At this point it should really just be deprecated in favor of JPEG XL. And let's skip AVIF completely please.

        • cjawdb 3 years ago

          100% agree. I'd say JXL is going to be the closest thing we get to a universal image format for quite some time. Almost completely superior to JPEG/PNG/GIF/WebP/etc. and clearly superior to AVIF in basically every way except very low bitrates and animation (which... just use HTML5 video with AV1 webms, what are you even doing?).

          Oh, and adoption rates, but considering JXL's standard was finalized less than a year ago and it's already gotten support in so many things and from so many large companies, I really don't see any way that it fails other than Google abusing their monopolistic position in the browser engine space. The people arguing against adding support for a brand new codec because it doesn't magically have 100% support is circular reasoning and feels very disingenuous considering WebP and AVIF were never held to the same standard.

        • ksec 3 years ago

          >At this point it should really just be deprecated in favor of JPEG XL. And let's skip AVIF completely please.

          You say that now, try doing that between 2020 all the way to 2022 you get attacked by AOM Strike Force.

    • derefr 3 years ago

      They did all the work required to implement it, sat around for a few months, and then removed it, before anyone else even noticed it was there / had a chance to start integrating it.

      My personal conspiracy theory is that some Google engineer who works on Chrome, came up with "JPEG XL support" as a feature they could work on, pushed it through to prod, patted themselves on the back, and forgot about it; but this was all done without first getting sign-off from whoever at Google is trying to push for WebP to be a thing. When that person or group noticed "Chrome now supports JPEG XL", they got that support ripped out.

      • lonjil 3 years ago

        The work wasn't done by anyone on the Chrome team. Someone at Google Research Zurich (I don't recall who) wrote the patches and submitted them. Actually, I think that they've even kept the patches up to date with newer Chrome releases so in theory it would be easy to re-introduce JXL into Chrome if there is a will to do it...

      • DannyBee 3 years ago

        The number of people in this thread pretending they have more expertise about this, and spreading random conspiracy theories about WebP, is impressive.

        Actually, Google employs 2 of the 3 main authors of the JPEG XL spec, and the main contributors to libjxl.

        Also, it wasn't a few months, and others had explicitly said no.

        You can argue it was a dumb decision, but like, can we at least get facts straight instead of making up random stories?

        There people in this thread arguing they have no idea what they are doing and have no expertise, while they simultaneously employ the spec authors to work on it and are one of the two primary contributors to the reference library.

        A bit silly and incongruous.

        Just because someone does something you don't like doesn't make them stupid or wrong. You'd be much better off if you would gather facts first, listen to the perspectives of others, and then respond.

        • lonjil 3 years ago

          > Actually, Google employs 2 of the 3 main authors of the JPEG XL spec, and the main contributors to libjxl.

          > There people in this thread arguing they have no idea what they are doing and have no expertise, while they simultaneously employ the spec authors to work on it and are one of the two primary contributors to the reference library.

          Google is not a monolith. The JXL people are at Google Research Zurich, while the people who decided to not include JXL in Chrome are members of the Chrome team. The Chrome team obviously does not employ the people over in Zurich, nor do they presumably control what they work on.

        • ksec 3 years ago

          I am sorry but Google's rationale and comparison [1] between JpegXL and WebP is even more impressive.

          And much like Microsoft, I will put any research arm of a company as a separate company.

          [1] http://storage.googleapis.com/avif-comparison/index.html

        • account42 3 years ago

          Companies participating in standards bodies while actively sabotaging the standards is nothing new.

      • asddubs 3 years ago

        it was also only ever hidden behind a flag

    • themerone 3 years ago

      The Googlers behind webp have more clout than the Googlers behind Jpeg XL.

      JPEG XL has gained broader industry interest than any of the previous attempts to replace JPEG.

      I think someone is very hurt that their web p pet project has earned more hate than love

    • csnover 3 years ago
    • ksec 3 years ago

      >If the decision was intentional: did they state a reason why?

      Yes It was intentional.

      They stated AVIF is as good if not better than JPEG XL.

  • jeffbee 3 years ago

    Can you explain to the rest of us what about JPEG XL applies to that use case? If you asked me to store lossless, 16-bit (per channel, or monochrome, I am assuming) images I would suggest TIFF.

    • lonjil 3 years ago

      I think they want better compression. JXL has excellent lossless compression.

    • vetinari 3 years ago

      TIFF is a container, it can have payload with different compression schemes, lossy or lossless. Including JXL.

      • account42 3 years ago

        TIFF can be used as a container. It also comes with its own (relatively shitty) compression methods which is probably what you'd end up using if you wanted 16-bit TIFFs today.

        And TIFF as a container for JXL would no less require JXL adoption than plain JXL.

  • kstrauser 3 years ago

    I am suuuper ignorant on the subject, but is this something that could replace DICOM?

    • mk_stjames 3 years ago

      Not an expert either by far, but DICOM isn't just images, it's a much larger data structure and following protocol, which deals with the transmission of the data between devices as well. The files are just one part of it. It also supports more dimensions to the data frames other than 2D. The pixel data in DICOM itself uses JPEG however (among other potential pixel compression methods), and it is possible that JPEG XL rolled into DICOM could allow for benefits.

    • concise_unicorn 3 years ago

      No, DICOM is a container format that can contain JPEG XL image data

      • kstrauser 3 years ago

        Ah, I see. What does the contain provide other than image data?

        • neandrake 3 years ago

          Lots of metadata about the image scan. Patient name/id, etc. and often physics related to the image scan such as the voxel size, units, properties of the imaging equipment, etc. DICOM is also used for other data that isn’t directly related to the visual image such as segmentation of the image, radiotherapy planning info, and so on. There are hundreds of dicom tags (the metadata entries) that can be in the dataset.

  • vbezhenar 3 years ago

    Does it really matter? These days decoding image with JS or Wasm should be fine. It's not video.

    • bick_nyers 3 years ago

      Video is not lossless, a second of high quality video might be a total of 5 megabytes.

      A mammogram on the other hand, might be 300 images of lossless 4k resolution, which could clock in at about 2 gigabytes. That could be per breast in a given study, and a study could have prior mammograms attached as well.

      You will hit memory limits, so you need to be able to unload and load data intelligently and quickly.

      • simondotau 3 years ago

        Image compression for mammograms seems like a thing ideally suited to a straightforward ML task — a model trained to classify sections of an image which are outside of the area of relevance (i.e. not the breast) and classify details of high importance so that detail can be retained where it's needed.

        Especially handy that it wouldn't require a new file format. It only requires the encoder to support variable compression. (I know Photoshop supported this for JPEG many decades ago.)

        • bick_nyers 3 years ago

          I might be missing the details here, but everything outside the breast should be pretty much black and will get compressed very efficiently (high signal, low noise, easy to predict).

          Foveated compression sounds like a super cool idea I've never thought about before.

          Before that, you would need to get radiologists onboard with the idea of something being "diagnostically lossless" (think visually lossless), which is currently a hard sell (some promising research does exist on this)!

    • computerbuster 3 years ago

      https://giannirosato.com/blog/post/nvenc-v-qsv/ This site has WASM-decoded JXL images using JXL.js. Native support would be much faster, & trying to decode much larger images with JXL.js doesn’t work very well.

      • vbezhenar 3 years ago

        What do you mean by "much faster"? Those images are opened pretty much instantly both in desktop chrome and in iOS chrome. If you didn't mention that they're JXL, I would never notice that.

    • crazygringo 3 years ago

      Images are opened and used in a lot of places that aren't browsers.

kps 3 years ago

Excellent. JPEG XL is a usable general-purpose image format, not just a passive delivery format like WebP and AVIF.

  • zamadatix 3 years ago

    Could you explain how so? JPEG XL seems cool enough but what about e.g. AVIF makes it "just a passive delivery format" instead of a general-purpose image format? It handles color spaces, lossless, lossy, up to 12 bit, up to 4:4:4/RGB, transparency, and animation at a good quality/size ratio so what's so drastically different about JPEG XL to move them to separate categories?

    • kps 3 years ago

      I think 12-bit colour stops it being adopted for ‘master’ images intended for editing. The current top comment says that 16-bit depth is a requirement for radiology. Also, I've read that its lossless encoding is often very poor — larger than PNG.

      (I didn't downvote, BTW; it's a reasonable question.)

    • ajconway 3 years ago

      AVIF does not support progressive encoding.

      • zamadatix 3 years ago

        Assuming you meant "de"coding: it does, albeit I like JPEG XL's more. To me, that point seems an argument for things being the other way around anyways (i.e. general-purpose but not a good delivery format).

        • Dylan16807 3 years ago

          > Assuming you meant "de"coding

          Is there something wrong with the other phrasing? You need to have a progressively encoded image before you can decode it progressively.

        • ajconway 3 years ago
          • jonsneyers 3 years ago

            I am not sure how exactly the "progressive avif" works, but it looks like basically something optional that comes at a cost in the final file size, whereas in jxl some basic progressive encoding is always available (at least for lossy images) and doesn't come at a cost in file size.

    • adgjlsfhk1 3 years ago

      the tldr is that video formats are relationship mediocre for images because the tradeoffs you make to compress an image that will be seen for 1/60th of a second are different than those for a static image.

      • account42 3 years ago

        Your point is not wrong in general but I want to nitpick that webp and avif are based on video compression techniques for I-frames which while themselves only shown for a single 1/FPS duration will impact a longer time slice of the video as other frames will reference them.

  • rpbiwer2 3 years ago

    I'm not very familiar with media encoding formats. What makes webp and avif well suited for delivery but not general purpose?

    • kps 3 years ago

      They're suited for delivery because they're based on video codecs (WebP on VP8, AVIF on AV1) for which consumer hardware typically has hardware decoding support, but were not designed for still images. AVIF is newer and substantially better than WebP, but still has limited colour depth and channels, so it's comparatively poor for editing. Lossless mode is not good for non-photo content. Encoding is relatively slow without hardware support.

      • lonjil 3 years ago

        > They're suited for delivery because they're based on video codecs (WebP on VP8, AVIF on AV1) for which consumer hardware typically has hardware decoding support,

        But no one is doing HW decode for web images. (other than maybe Apple with JPEG? I've seen conflicting reports). AVIF images that aren't actually videos are always software decoded.

Taywee 3 years ago

Good. I can't believe the Google argument for removal, being in effect "it's only slightly better in every single way than all the other formats we support, and not enough people jumped though the hoops to manually opt into it, so we're removing it entirely."

alwillis 3 years ago

Here's the text of the WWDC session description that will cover JPEG XL [1]:

Learn about the latest image formats and video technologies supported in Safari 17. Discover how you can use JPEG XL, AVIF, and HEIC in your websites and experiences and learn how they differ from previous formats. We’ll also show you how the Managed Media Source API draws less power than Media Source Extensions (MSE) and explore how you can use it to more efficiently manage streaming video over 5G.

The link isn't live yet as the session is scheduled for Thursday, June 8th.

[1]: https://developer.apple.com/videos/play/wwdc2023/10122/

twotwotwo 3 years ago

I hope it shows up in Safari and that this sign of interest from others gets it a second shot in Chrome.

Just the JPEG recompression is arguably worth the price of entry; it's less savings than AVIF, of course, but it's easier to adopt now, where re-encoding everything as AVIF is a much larger hump to get over. Its other modes provide some real benefits for users for very-high-quality and lossless images as well as any situation where progressive display helps. For folks producing images, is much easier to fit in than AVIF for anyone who needs to encode a lot on the CPU.

  • alwillis 3 years ago

    > I hope it shows up in Safari and that this sign of interest from others gets it a second shot in Chrome.

    I'm pretty sure the Chrome team knew at the time they dropped JPEG XL that there was a decent chance Apple would implement it--there's certainly enough of a backchannel between the browser teams at Google, Apple, Mozilla and Microsoft.

    • twotwotwo 3 years ago

      Yeah, that is all odd to me; Google cited lack of "interest from the entire ecosystem" (https://bugs.chromium.org/p/chromium/issues/detail?id=117805...). Mozilla also had an experimental JXL implemenation out there. I'd hope, like you said, that the browser vendors had enough of a backchannel to keep a good thing from fizzling because each is uncertain if the others will implement it.

      But if the Chrome folks did know they had all three major browser engines were ready to go, along with the positive noises from Facebook, Adobe, other parts of Google, and a few other notable folks, that seems like a solid base of support, unless you're really expecting the world to go all-in on a format before a browser supports it without a flag. So I guess I wonder if it's that the Chrome team had set the bar high, that they hadn't expected Apple to support JXL at the time they made the call, or something else.

      • alwillis 3 years ago

        > So I guess I wonder if it's that the Chrome team had set the bar high, that they hadn't expected Apple to support JXL at the time they made the call, or something else.

        I think it’s something else.

        I’ve read enough CSS Working Group (and other groups) meeting minutes to know when Google wants to implement something, that’s what they do, often when the WebKit and Mozilla teams don’t agree.

        Whatever happened for Google to reverse their position on JPEG XL, I don’t believe it has anything to do with the technical merits of the format or whether Apple had planned to implement it.

    • saagarjha 3 years ago

      Apple typically does not announce intent to implement things; they just implement them.

  • schrmh 3 years ago

    »it's less savings than AVIF, of course,« In most cases JPEG XL will save you more than AVIF.

    • twotwotwo 3 years ago

      Those words were about the JPEG recompressor (Brunsli) specifically, which saves about 22% but has a smoother transition from today's .jpg world than any of the new lossy formats; you can bit-for-bit reconstruct the original JPEG from the Brunsli-compressed one, and it's certainly much faster than AVIF to encode with CPUs. You can even insert Brunsli as a Content-Encoding that's transparent to the user (so right click still saves .jpg), and Chrome had an issue open to consider doing that before they backed out JXL support.

aidenn0 3 years ago

JPEG XL is the first image format in over a decade that has shown real quality improvements for high-frequency images (i.e. sharp edges). JPEG 2000 is competitive with all of the video codec I-frame formats I've tried, and you can embed them in PDFs unmodified, so I've not troubled with anything new.

qingcharles 3 years ago

And Google just (sadly) pulled support from Chrome.

Your move, Google.

  • chungy 3 years ago

    With the only justification being "nobody wanted it", a plainly false statement.

    WebP isn't good enough. AVIF isn't good enough. JPEG XL is good enough.

    • jbverschoor 3 years ago

      Google is using the wrong tricks to keep marketshare.. I'm not even sure if they know it

    • Gigachad 3 years ago

      Their justification was more that adding it would be committing a lot of hardware and software vendors to support it which would be very expensive for not enough gain.

      • cjawdb 3 years ago

        More accurately, their justification was based on discredited benchmarks (which used a fairly old-even-at-the-time version of libjxl and IIRC created by the AVIF team)... and the commit to remove support was created by a co-author of WebP who gives talks on WebP and is the primary contributor to libwebp.

        The Chromium issue where they made this decision is full of "hardware and software vendors" (Adobe, Serif/Affinity, Krita, Facebook, Shopify, Cloudinary, Intel, Nvidia, the VESA DisplayHDR Chairman) telling them they're making a terrible decision and is one of the most-starred and most-commented-on issues of all time for Chromium.

        https://bugs.chromium.org/p/chromium/issues/detail?id=117805...

        • DannyBee 3 years ago

          You certainly have an opinion, but you do also keep leaving out facts that don't particularly support it, both here, and elsewhere.

          "and the commit to remove support was created by a co-author of WebP who gives talks on WebP and is the primary contributor to libwebp."

          Google also employs two of the co-authors of JPEG XL, who give talks on JPEG XL, and was were two of the primary contributors to libjxl.

          The main authors of the JPEG XL specification are Jyrki Alakuijala, Jon Sneyers, and Luca Versari. Jyrki is a Googler. Jon is at Cloudinary. Luca is also at Google.

          If you are going to try to come up with a silly conspiracy about this being WebP related, it probably would help if this wasn't the case.

          Maybe consider that they do in fact have the expertise necessary to decide whether JPEG-XL is something they want to do?

          I mean, seriously. You can disagree with the decision, but your argument that they have no idea what they are doing WRT to JPEG-XL seems pretty silly - the only company who arguably has any better idea would be cloudinary.

          • cjawdb 3 years ago

            Phrasing this like "well Google must know best because they employ some subset of the people that worked on JXL" when the entire rest of the industry has been very overwhelmingly pro-JXL isn't very convincing. Also my point wasn't "Google doesn't know what they're doing", it's that internal politics at Google are probably a factor in them basically being the only opposition to a standard that has been gaining support significantly faster than WebP or AVIF (both much older formats at this point) ever did.

          • schrmh 3 years ago

            »they do in fact have the expertise necessary to decide whether JPEG-XL is something they want to do?« The problem is that they do have the people with expertise but those were not asked. For example, the AVIF team at Google does not have the expertise — they have proven that publicly (there was a AVIF vs JXL comparison thing that got put out) and later on an response they gave to Sneyers (the response got shared on Discord).

          • account42 3 years ago

            > Maybe consider that they do in fact have the expertise necessary to decide whether JPEG-XL is something they want to do?

            It's not the expertise of your employer that is in question but the morals.

      • lonjil 3 years ago

        > Their justification was more that adding it would be committing a lot of hardware

        Which is completely nonsensical. Hardware support is meaningless for web images.

        • pgeorgi 3 years ago

          Hardware accelerated handling was one of the arguments used to oppose a WASM based implementation that sites could use at will to prove that there's demand for JPEG-XL support (and that the Chrome team provides, by the way).

          • lonjil 3 years ago

            No it wasn't. WASM implementations are simply slower than native support. No browser uses HW accelerated decode for AVIF images or JXL. I think Safari might use HW for JPEG, but that's it across all browsers.

          • chungy 3 years ago

            There's not much Google can do to stop sites from loading libjxl.wasm.

    • bitwize 3 years ago

      Now that Apple supports it, people will want it.

  • iamakulov 3 years ago

    Relevant thread, for those who’re curious: https://bugs.chromium.org/p/chromium/issues/detail?id=117805...

  • zamadatix 3 years ago

    Firefox came to the conclusion they didn't really care too so it's not just Google that is iffy about it. With Apple pushing it now... maybe that will change things in the long run?

    • cjawdb 3 years ago

      Firefox has next to zero marketshare (unfortunately and despite my best efforts to get people to use FF). There was never any chance that Mozilla was going to waste their very limited resources attempting to be the early adopters of an image codec when nobody is going to use it on the web until the browser engine with de facto control over the market starts supporting it.

      • zamadatix 3 years ago

        Mozilla had already implemented it in Firefox Nightly before coming to the neutral conclusion in the standards process.

      • Dalewyn 3 years ago

        >never any chance that Mozilla was going to waste their very limited resources

        Mozilla is many things, but "limited resources" Mozilla is not.

        That is if they would stop paying their CEO their entire coffer, anyway.

        >be the early adopters of an image codec when nobody is going to use it on the web until the browser engine with de facto control over the market starts supporting it.

        The exact opposite mentality was how Firefox and then Chrome usurped the throne from Internet Explorer. Firefox is never going to usurp anything again so long as Mozilla is content to play second and third fiddle.

        • cjawdb 3 years ago

          I don't disagree but unfortunately that's the state of Mozilla at the moment.

  • pacetherace 3 years ago

    Can't it be enabled via an extension? Similar to how media players support third party codec.

viraptor 3 years ago

I'm trying to understand the motivation here. There's a few new image formats as potential candidates: jpeg xl, webp v2, avif, heic. Apple already had heic in the os, but still not Safari AFAIK. Avif has the benefit of hardware encoders/decoders (with limited chroma options though).

I see the HDR mentioned in other comments which is interesting.

Are there any (potential conspiracy) reasons they would choose not to go for another format?

I'm trying to understand how they arrived at this answer given it was available for years and ignored in popular software.

  • cjawdb 3 years ago

    I'm confused where you got "it was available for years and ignored in popular software" from? Most of the ISO standard was only published last year, with the last bit being published in October 2022. IIRC AVIF is almost ~4 years old by the same standards and WebP is over a decade old.

    Adobe has partial support (in Camera RAW) with presumably further support coming considering their website recommends JXL alongside AVIF for HDR images. It's also supported by Affinity Photo 2, Krita, Darkroom, GIMP, ffmpeg, ImageMagick, Paint.net, anything Qt/KDE-based via plugin, Pale Moon, libvips, and almost every third-party image viewer that I've ever used or heard of (nomacs, Irfanview, ImageGlass, xnView, etc.). It also has had vocal support from senior engineers at a variety of companies like Facebook, Shopify, Cloudinary, Intel, Flickr, etc.

    My first thought when I heard about JXL several months ago was "oh, a new JPEG-2000?" but I've quickly become a JXL evangelist after reading more about it and then playing around with libjxl myself.

    https://jpegxl.info/why-jxl.html

    https://jpegxl.io/articles/faq/

    https://cloudinary.com/blog/the-case-for-jpeg-xl

  • Macha 3 years ago

    The big feature JPEG XL offers that HEIC and AVIF do not is lossless filesize reduction for JPEG images (such as those produced by basically every non-iphone camera).

    Also AVIF and HEIC as specified don't support >8k images.

masswerk 3 years ago

Finally, a good reason to upgrade (again).

  • slig 3 years ago

    Is there a specific reason why this has to be a OS update thing? I know that it's likely that they don't update the emoji font outside major OS updates so people have an extra reason to update.

    • alwillis 3 years ago

      > Is there a specific reason why this has to be a OS update thing?

      The way Apple does it, it's cleaner to implement the APIs for this sort of thing in a new operating system version, especially if it requires features not present in the current versions of the operating system.

      They could make an exception for Safari by including the required code to support JPEG XL in Safari Technology Preview on Ventura to allow developers to test their sites and web apps until macOS, iOS, etc. ship in the fall.

      I suspect we'll learn what the plan is as the Safari/WebKit team make more announcements during WWDC: https://www.webkit.org/blog/14203/web-technology-sessions-at...

    • eyelidlessness 3 years ago

      It doesn’t have to be, but Apple has generally deferred new functionality to major versions, especially since they moved to an annual release cadence. There have also been a few exceptions since then, but they’re usually headline features which were supposed to bolster the major release but fell behind schedule.

    • ezfe 3 years ago

      It doesn't have to be, but by making it an OS level thing, then when you download that photo, it still opens in Preview, etc.

eviks 3 years ago

Nice, maybe Chrome will reconsider and add this new great format

captainmarble 3 years ago

Google always need a push from another tech giants to do something right like chatgpt did.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection