43
submitted 1 month ago by jaykrown@lemmy.world to c/general@lemmy.world

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.

all 16 comments
sorted by: hot top new old
[-] testEmailVerified@lemmy.world 10 points 1 month 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

[-] jaykrown@lemmy.world 7 points 1 month ago

Thanks for replying, I think it's still very worthwhile to support JPEG XL even while WebP exists given that WebP is technologically inferior to JPEG XL in almost every way.

[-] testEmailVerified@lemmy.world 5 points 1 month ago* (last edited 1 month ago)

I took a look and Pictrs already should support JXL (jpeg xl)

I believe it already works, all though unable to confirm this as I dont have anything atm that can display JXL.

https://lemmy.world/pictrs/image/64d7f66d-04f0-4c9d-8893-f05304feb431.webp?format=jxl&thumbnail=512

^ even though the above says .webp it should be a jxl format image

see this for the default format https://git.asonix.dog/asonix/pict-rs/src/branch/main/pict-rs.toml#L347

But tbh i doubt the default format will change soon bc JXL support is very poor. No android device supports it yet. and the latest browsers only in beta. Only apple side it seems to have some support already.

[-] jaykrown@lemmy.world 2 points 1 month ago* (last edited 1 month ago)

Yea this is diplaying in the UI for me, why does it requre the .webp?format=jxl instead of just being .jxl? Seems weird. If you want something that can display JPEG XL you can use chromium and go to chrome://flags/#enable-jxl

[-] leanleft@lemmy.ml 4 points 1 month ago* (last edited 1 month 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.world 2 points 1 month 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.

[-] 9point6@lemmy.world 3 points 1 month 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

[-] airbreather@lemmy.world 8 points 1 month ago

JXL has a lossless mode, which is what they're referring to. Sounds like a fair comparison to me.

[-] jaykrown@lemmy.world 5 points 1 month 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?

[-] x00z@lemmy.world 2 points 1 month 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.world 5 points 1 month ago* (last edited 1 month 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/

[-] LodeMike@lemmy.today 0 points 1 month ago

Lossy format beats lossless. More at 11.

[-] jaykrown@lemmy.world 2 points 1 month ago

It's from lossless PNG to lossless JXL.

this post was submitted on 10 Aug 2026
43 points (95.7% liked)

General Discussion

14666 readers
1 users here now

Welcome to Lemmy.World General!

This is a community for general discussion where you can get your bearings in the fediverse. Discuss topics & ask questions that don't seem to fit in any other community, or don't have an active community yet.


🪆 About Lemmy World


🧭 Finding CommunitiesFeel free to ask here or over in: !lemmy411@lemmy.ca!

Also keep an eye on:

For more involved tools to find communities to join: check out Lemmyverse!


💬 Additional Discussion Focused Communities:


Rules and Policies

Remember, Lemmy World rules also apply here.0. See: Rules for Users.

  1. No bigotry: including racism, sexism, homophobia, transphobia, or xenophobia.
  2. Be respectful. Everyone should feel welcome here.
  3. Be thoughtful and helpful: even with ‘silly’ questions. The world won’t be made better by dismissive comments to others on Lemmy.
  4. Link posts should include some context/opinion in the body text when the title is unaltered, or be titled to encourage discussion.
  5. Posts concerning other instances' activity/decisions are better suited to !fediverse@lemmy.world or !lemmydrama@lemmy.world communities.
  6. No Ads/Spamming.
  7. No NSFW content.

founded 3 years ago
MODERATORS