this post was submitted on 21 May 2025
1238 points (98.2% liked)

memes

14911 readers
4705 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/AdsNo advertisements or spam. This is an instance rule and the only way to live.

A collection of some classic Lemmy memes for your enjoyment

Sister communities

founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] Olissipo@programming.dev 73 points 3 days ago* (last edited 3 days ago) (41 children)

I'm working on a project which generates images in multiples sizes, and also converts to WEBP and AVIF.

The difference in file size is significant. It might not matter to you, but it matters to a lot of people.

Here's an example (the filename is the width):

Also, using the <picture></picture> element, if the users' browsers don't support (or block) AVIF/WEBP, the original format is used. No harm in using them.

(I know this is a meme post, but some people are taking it seriously)

[–] Thorry84@feddit.nl 2 points 3 days ago (3 children)

How is the size difference after gzip compression? Probably pretty much the same, but I wonder how large the difference is then. Since a lot of folk make sure the contents is gzipped when served to the user.

[–] Olissipo@programming.dev 7 points 3 days ago (2 children)

Even using the highest compression levels, barely any difference. Not worth it

If I understand correctly gzip, brotli and similar are best used to compress text.

Font files also shouldn't be compressed. A TTF file compresses a bit, but a WOFF2 file will be even smaller than that (and WOFF2 also doesn't compress well). So might as well use WOFF/WOFF2

[–] vvvvv@lemmy.world 2 points 3 days ago

If I understand correctly gzip, brotli and similar are best used to compress text.

Compression algos should be used on uncompressed data. Using them on already compressed data (most video, images, music formats) is generally useless.

[–] Thorry84@feddit.nl 2 points 3 days ago

Thanks, very interesting results

load more comments (37 replies)