News for hackers. Stuff that matters.
Re:Chromium jpegxl issue closed as won't fix by SigmundA on Monday May 20, 2024 @07:44AM (#40414423)
>But for real-world photos, AAA game screenshots, or even just linear gradients, it doesn't offer any size compression at all.

PNG will normally get at least 2:1 compression on photos, I think worst case with a image of each pixel being a different color of 16 million pixels it still had around 35% compression.

2:1 is much less than jpeg which would probably be around 10:1 for photo, its definitely better than nothing, and the big thing here is its lossless unlike jpeg.

It's not naive, it's just not lossy like jpeg. Jpeg XL also supports lossless with around 35% better compression than PNG so that means may 3:1 vs 2:1.

Re:Chromium jpegxl issue closed as won't fix by gruez on Monday May 20, 2024 @11:20AM (#40416522)
>PNG will normally get at least 2:1 compression on photos

"At least"? I tried with the first photo on the wikipedia home page: https://en.wikipedia.org/wiki/File:City_Building_Champaign_I...

Saving it as a 24-bit bmp (ie. uncompressed) gets me 12,180KB. Saving it as a PNG gets me 7,157KB, which is 1.7:1

Re:Chromium jpegxl issue closed as won't fix by SigmundA on Monday May 20, 2024 @12:51PM (#40417418)
I just did the same in preview on my Mac (export TIFF uncompressed - 12mb -> export PNG) and got 5.4mb so 2.2:1 and on https://cloudconvert.com 4.6mb with default settings.

PNG does have some tuning parameters that can effect the final size usually just speed vs size.

Re:Chromium jpegxl issue closed as won't fix by mappu on Tuesday May 21, 2024 @04:02PM (#40433157)
Using plain gzip -9 on the 12MB uncompressed image, i get 6953 KiB, smaller than your PNG. Using a stronger gzip compressor (zopfli) i get as little as 6294 KiB.