this post was submitted on 04 Feb 2024
215 points (88.0% liked)
Technology
59374 readers
7409 users here now
This is a most excellent place for technology news and articles.
Our Rules
- Follow the lemmy.world rules.
- Only tech related content.
- Be excellent to each another!
- Mod approved content bots can post up to 10 articles per day.
- Threads asking for personal tech support may be deleted.
- Politics threads may be removed.
- No memes allowed as posts, OK to post as comments.
- Only approved bots from the list below, to ask if your bot can be added please contact us.
- Check for duplicates before posting, duplicates may be removed
Approved Bots
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Thanks to wasm, you don't have to bow to Google's whim and can choose to include jpeg xl support on your websites if you want: https://github.com/niutech/jxl.js
Do you know if it uses the native decoder if available (so, in Safari I guess)? Doesn't say in the readme.
I believe so. This line in the source code means it'll only attempt the decoding if an
img
element for a.jxl
image url fails to load.If you're on safari, you can verify it by going to the demo page at https://niutech.github.io/jxl.js/ and inspect the image element. If the
src
attributes contain blob, then it's decoded using the wasm decoder. If thesrc
attribute contains url to a.jxl
file, then it's decoded natively.Very cool, thanks. Will keep this in mind.
I read "wasm" as per "wasp" -- white, Anglo-Saxon -- and then my brain create "men" because Protestant didn't make sense. And I continued to read the sentence until context didn't make sense.
But it still kind of does.
(Yes, I know web assembly is a thing. Just making conversation.)
Wasps are also a type of insect.