176
submitted 2 years ago by renzev@lemmy.world to c/memes@lemmy.world

Context: Even though Chromium has native support for AVIF, a very nice image format, Microsoft goes out of their way to remove it from Edge, which is a chromium fork. Jpeg XL (JXL) (not to be confused with Jpeg (JPG) or Jpeg 2000 (jpg2k) ) is another nice image format, which, IIRC, is only supported in Firefox.

you are viewing a single comment's thread
view the rest of the comments
[-] TxzK@lemmy.zip 18 points 2 years ago

WebP cause small size, can be transparent, can be animated, can use either loseless and lossy compression. Also it pisses of many people which is funny to me.

[-] drkt@feddit.dk 28 points 2 years ago* (last edited 2 years ago)

If you want to piss people off, support JPEG XL

Every time you mention it, ~~Google shills~~ WebP supporters come out of the woodworks to do their song and dance!

[-] renzev@lemmy.world 2 points 2 years ago* (last edited 2 years ago)

I''m working on a website right now, trying to choose which image format to use. I think I'm gonna store both webp and AVIF versions on the server, and have Javascript figure out which format is best for the browser automatically (for images that have to be loaded with Javascript anyway).If I have time, I might even try detecting if JXL is supported via third-party extension and using that too.

[-] drkt@feddit.dk 6 points 2 years ago* (last edited 2 years ago)

have Javascript figure out which format is best for the browser

Please don't- HTML has native image fallback functionality https://www.w3schools.com/TAGS/tag_picture.asp

edit

lemmy swallowed my codeblock, take this instead

https://stackoverflow.com/questions/71719254/correct-way-to-display-an-img-fallback

edit

[-] renzev@lemmy.world 3 points 2 years ago

Thanks for the info! I was already suspecting that this could be done without JS, just didn't know how.

[-] renzev@lemmy.world 6 points 2 years ago

The pissing people off part is why I post all my memes in webp haha

[-] TxzK@lemmy.zip 3 points 2 years ago

Extremely based

this post was submitted on 21 Jan 2024
176 points (92.7% liked)

memes

16721 readers
1224 users here now

Community rules

1. Be civilNo trolling, bigotry or other insulting / annoying behaviour

2. No politicsThis is non-politics community. For political memes please go to !politicalmemes@lemmy.world

3. No recent repostsCheck for reposts when posting a meme, you can only repost after 1 month

4. No botsNo bots without the express approval of the mods or the admins

5. No Spam/Ads/AI SlopNo advertisements or spam. This is an instance rule and the only way to live. We also consider AI slop to be spam in this community and is subject to removal.

A collection of some classic Lemmy memes for your enjoyment

Sister communities

founded 2 years ago
MODERATORS