Announcement

Collapse
No announcement yet.

Mozilla Is Interested In A Rust JPEG-XL Decoder For Firefox & Google Might Develop It

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Mozilla Is Interested In A Rust JPEG-XL Decoder For Firefox & Google Might Develop It

    Phoronix: Mozilla Is Interested In A Rust JPEG-XL Decoder For Firefox & Google Might Develop It

    Mozilla is interested in a Rust-written JPEG-XL image decoder for its memory safety characteristics compared to the existing C++ code they rely on for JPEG-XL image support in Firefox. While Google previously removed JPEG-XL support from Chrome/Chromium, it may be Google that comes to the rescue and writes a Rust-based JPEG-XL image decoder that can then be shipped by Firefox...

    Phoronix, Linux Hardware Reviews, Linux hardware benchmarks, Linux server benchmarks, Linux benchmarking, Desktop Linux, Linux performance, Open Source graphics, Linux How To, Ubuntu benchmarks, Ubuntu hardware, Phoronix Test Suite

  • #2
    JPEG-XL after all, that's a good thing!

    Comment


    • #3
      I hope Rust gets better deployment. I tried to build a flatpak from code that contained Rust and Qt. I was giving up.

      Comment


      • #4
        Google Might Develop It
        Hell has frozen over.

        But then you need to realize that "the JPEG-XL team at Google Research" is not the team behind Google Chrome/Android and whatever they implement may never be incorporated into these two projects which will ultimately mean that the format will continue to be essentially dead.

        And again, I mentioned it earlier and I will mention it now again, tooling matters. Whatever new format gets implemented, it needs to be implemented everywhere for all use cases. Not how WebP/AVIF are currently "implemented".
        Last edited by avis; 04 September 2024, 07:39 AM.

        Comment


        • #5
          What about all of the hundreds of thousands of lines of C++ code in Firefox already? A bit more can't hurt, surely? I think somebody should invest efforts into fuzz testing libjxl, even if Firefox doesn't use it it's still used by a bunch of packages on Linux distros.

          Comment


          • #6
            I remember that some exhibitionist(maybe from Google or NASA) made an Earth picture some TB or PB of size in some format, maybe classic jpeg and published it. But it was somehow zoomable, but I image that firefox needs some establishment need from Google to help, but if not make some petition with subscription who needs that and if does not it make some memory excuses with some universe photos of some rocks some parsecs behind and hiding some experimental weapons to make proper funding.

            Comment


            • #7
              That would be awesome, but I'll believe when I see (JPEG XL images decoded with) it.

              Comment


              • #8
                Originally posted by ahrs View Post
                What about all of the hundreds of thousands of lines of C++ code in Firefox already? A bit more can't hurt, surely? I think somebody should invest efforts into fuzz testing libjxl, even if Firefox doesn't use it it's still used by a bunch of packages on Linux distros.
                Have you read the news piece?

                "Our primary concern has long been the increased attack surface of the reference decoder (currently behind a pref in Firefox Nightly), which weighs in at more than 100,000 lines of multithreaded C++."

                The JPEG-XL format is extremely complicated and the attack surface for its C/C++ implementations is massive. You can bet hackers will start poking at it the moment it gets enabled.

                Much much simpler PNG has seen literally dozens of extremely serious vulnerabilities
                Last edited by avis; 04 September 2024, 07:49 AM.

                Comment


                • #9
                  Originally posted by pWe00Iri3e7Z9lHOX2Qx View Post
                  That would be awesome, but I'll believe when I see (JPEG XL images decoded with) it.
                  For the impatient:

                  Firefox:


                  Chrome:



                  Doesn't support animated images and certain format features (e.g. HDR).

                  Comment


                  • #10
                    Very interesting, especially considering the past history of JPEG-XL and Chrome. But if Google invests in writing a Rust-based JPEG-XL decoder, it will be interesting to see if they go ahead in reconsidering their image support within Chrome.​
                    The JXL team at Google Research in Zurich have been getting paid to work on JXL for years at this point. Chrome dropping JXL didn't and won't change that. Most people who work professionally on JXL are employed by Google, only one person on the JXL team works elsewhere.

                    Comment

                    Working...
                    X