this post was submitted on 24 Jun 2025
246 points (99.6% liked)

Programming

21142 readers
364 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities !webdev@programming.dev



founded 2 years ago
MODERATORS
 

After 20 years, PNG is back with renewed vigor! A new PNG spec was just released.

you are viewing a single comment's thread
view the rest of the comments
[–] tal@lemmy.today 80 points 1 day ago* (last edited 1 day ago) (1 children)

PNG has terrible compression

It's fine if you're using it for what it's intended for, which is images with flat color or an ordered dither.

It's not great for compressing photographs, but then, that wasn't what it was aimed at.

Similarly, JPEG isn't great at storing flat-color lossless images, which is PNG's forte.

Different tools for different jobs.

[–] dormedas@lemmy.dormedas.com 39 points 1 day ago* (last edited 1 day ago)

JPEG isn't great at storing flat-color lossless images, which is PNG's forte.

JPEG isn’t, but JPEG-XL, on the other hand, has come into existence and has great compression while being pixel-perfect lossless as compared to PNG (among a host of other improvements).

If only it got the support it deserves (thanks Google for making that harder)