this post was submitted on 28 Apr 2024
30 points (87.5% liked)

General Discussion

11880 readers
20 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: [email protected]!

Also keep an eye on:

For more involved tools to find communities to join: check out Lemmyverse and Feddit Lemmy Community Browser!


πŸ’¬ Additional Discussion Focused Communities:


Rules

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 [email protected] or [email protected] communities.
  6. No Ads/Spamming.
  7. No NSFW content.

founded 1 year ago
MODERATORS
 
top 20 comments
sorted by: hot top controversial new old
[–] [email protected] 19 points 3 months ago (2 children)

Jpeg xl is pretty good and I'm still pissed Google deleted it from Chromium before it could even try to get any market share.

Jpeg xl can do everything jpeg & png can do, but more efficiently.

[–] [email protected] 6 points 3 months ago

Google makes some really fuckin bullshit decisions. Jpeg XL being removed from chrome, same with DHCPv6 missing in android. I hate google

[–] [email protected] 2 points 3 months ago* (last edited 3 months ago) (1 children)

i dispise webp

edit: fuck all other formats png best.

[–] [email protected] 4 points 3 months ago (1 children)
[–] [email protected] 1 points 3 months ago

Webp has terrible image quality and was unsupported by many, many, tools for a long time

[–] [email protected] 6 points 3 months ago (2 children)

There's not much to improve on PNG. It's essentially a zipped up BMP with optional filters to rearrange pixels in a way that will hopefully lead to better compression at the zip stage.

Last time I tested this, if you used xz or zstd to compress a BMP with max settings, it made smaller files than PNG.

WebP and JXL is where it's at.

[–] [email protected] 2 points 3 months ago* (last edited 3 months ago)

Experts warn the obesity epidemic may require adoption of JpegXXL standard, at least for American selfies.

[–] [email protected] 1 points 3 months ago (1 children)

ny PNG elitist brain interprets this as PNG being so good than JpeG had to be upgraded and a new format (WebP)

[–] [email protected] 5 points 3 months ago (1 children)

WebP solves use cases for both PNG and JPEG as the same format can be lossless or lossy, while getting the benefits of a much more powerful codec.

PNG is good for certain types of graphics. Take a full size 48MP picture and encode it in PNG and it's going to be massive compared to JPEG.

PNG is a pretty simple and effective format but it's not especially good nowadays, there's a reason WebP is popular. Much smaller files for the same quality. Same for JPEG XL.

[–] [email protected] 0 points 3 months ago

Webp = google = convert to PNG

[–] lurch 2 points 3 months ago (2 children)

bro, we have enough image formats. thank you

[–] [email protected] 2 points 3 months ago

what the bomboclat you talking abt?

[–] [email protected] 1 points 3 months ago* (last edited 3 months ago) (2 children)

No we don't. Where are my animated PNGs?

[–] [email protected] 9 points 3 months ago (1 children)
[–] [email protected] 3 points 3 months ago (1 children)

Sweet! Is it universally supported, though? Can I use it with Firefox, Safari and Chrome?

[–] LemoineFairclough 1 points 3 months ago
[–] mindbleach 1 points 3 months ago

Quite Okay Imaging. One-page spec, comically fast, similar ratios.

I got thoroughly nerd-sniped by the same guy's Quite Okay Audio format, because he did a much less mic-drop job of that one. The target bitrate is high, for a drop-in replacement on MP3 or Vorbis, and the complexity level is... weird. QOI is shockingly simple; QOA involves brute force and magic numbers. I thought I could do better.

I embraced the 64-bit "frame" concept, did some Javascript for encoding and decoding as a real-time audio filter, and got one-bit samples sounding pretty good... in some contexts. Basically I implemented delta coding. Each one-bit sample goes up or down by a value specified in that frame - with separate up and down values, defined in log scale, using very few bits. Searching for good up/down values invites obsession but works fine with guess-and-check because each dataset is tiny. I settled on simulated annealing.

Where I ditched this is shortly after doing double-delta coding. So instead of a 0 making sample N+1 be sample N plus the Down value, sample N+1 is always sample N plus the Change value, and a 0 makes Change equal Change plus the Down value. This turns out to be really good at encoding a wiggly line, one millisecond at a time. If it's low-frequency. Low frequencies sound fantastic. Old-timey music? Gorgeous, slight hiss. Speech? Crystal clear. Techno? Complete honking garbage. Hilariously bad. Throw a high sine wave at delta coding and you get noise. Double delta coding, you get pleasant noise, but it's still nonsense bearing little resemblance to the input. It's not even a low-pass filter; the encoding method just chokes.

The clear fix would be re-implementing an initial test, where you specify high and low absolute values, and your one-bit samples just pick between them. It's naive carried-error quantization and it sounds like a child's toy that's never getting new batteries. But I'd do it alongside the delta options. Selecting which approach produces the least error would be done per-millisecond. You'd get occasional artifacting instead of mangled output or constant buzzing. I just ran out of steam and couldn't be arsed.

[–] [email protected] 1 points 1 month ago

jxl can also do lossless compression and transparency, so the important features of png are there