That’s about a 50% reduction in size, lossless, zero reduction in quality or change to pixels from lossless PNG to lossless JXL.

So the browser tools i built basically serves you the tools to easily convert stuff without needing to know anything about libjxl.

The JPEG reconstruction is the most interesting thing, you’re taking a lossy JPEG, converting it to lossless JPEG XL, and you’re seeing a 20% reduction in size while preserving that compression data.

  • MV [Jerboa dev]@lemmy.world
    link
    fedilink
    arrow-up
    10
    ·
    16 days ago

    Lemmy already supports webp through pictrs.

    you can get a webp format image for every image uploaded.

    Not against jpegxl though. But argument isn’t as strong since jpegxl is prob more of tradeoff against it

  • 9point6@lemmy.world
    link
    fedilink
    arrow-up
    5
    ·
    16 days ago

    Firstly, I agree, but:

    PNG to JXL is a laughably misleading comparison, the two formats have entirely different use cases

    JPEG to JPEG XL is good enough of a comparison without leaving yourself open to such an obvious retort

    • jaykrown@lemmy.worldOP
      link
      fedilink
      arrow-up
      5
      ·
      16 days ago

      the two formats have entirely different use cases

      Do they? JXL is lossless, this conversion is purely lossless. What are the different use cases?

  • leanleft@lemmy.ml
    link
    fedilink
    English
    arrow-up
    4
    ·
    edit-2
    16 days ago

    my last 5 uploads averaged 10kilobyte per img (webp).
    i don’t disagree to say that we shouldn’t use the best technology available.
    but relevant to note: proper optimization of the image goes a loooong way.(often more effective than just relying on a file format with theoretical-max efficient compression.
    i love this subject… because i hate reddit where ppl upload a screenshot of plain-text from twitter and it costs me 1MB of scarce mobile data, to see some garbage post. fuck that

    • jaykrown@lemmy.worldOP
      link
      fedilink
      arrow-up
      2
      ·
      16 days ago

      Indeed it’s a huge waste, and with all these data center hysteria, this is a genuine solution to reduce data storage/transfer costs.

  • x00z@lemmy.world
    link
    fedilink
    English
    arrow-up
    2
    ·
    16 days ago

    You’re saying those two images next to eachother are the same image? And that the left one is lossless? Because I can literally see the differences.

    • jaykrown@lemmy.worldOP
      link
      fedilink
      arrow-up
      5
      ·
      edit-2
      16 days ago

      It’s a compressed WebP so what you’re seeing isn’t truly the actual images. Unfortunately I had to upload a compressed WebP of the example, solely to display the size difference.

      If you want to see clear comparisons go to https://jpegxl.info/