News for hackers. Stuff that matters.
Re:Is WebP really better than JPEG? by ChrisMarshallNY on Tuesday June 23, 2020 @11:06AM (#23614848)
I really want a better alpha-mask standard to emerge. PNG24 is attractive, but huge. PNG8/GIF works well, but is pretty limited.

I don't think WebP is it, but we'll see what comes out of the scrum. I'll work with whatever that is, but I won't waste my time chasing will o' the wisp "standards."

Re:Is WebP really better than JPEG? by tombert on Tuesday June 23, 2020 @11:32AM (#23615258)
It's still relatively huge, and not widely supported without a polyfill, but FLIF [0] is a pretty neat format that tends to be smaller than the equivalent PNG, and can be converted to a lossy image "on the fly", and also supports alpha transparency.

The polyfill is still kind of slow, at least compared to native PNG rendering on the browser, but it does work, and hopefully some day it can be integrated into the standard.

[0] http://flif.info

Re:Is WebP really better than JPEG? by andrius4669 on Tuesday June 23, 2020 @12:25PM (#23616143)
>hopefully some day it can be integrated into the standard.

see jpeg-xl

Re:Is WebP really better than JPEG? by thdrdt on Tuesday June 23, 2020 @01:17PM (#23617034)
Some time ago I experimented with a reduced color palette and dithering while keeping the fill alpha info. It reduced the file size a lot while keeping the alpha.
Re:Is WebP really better than JPEG? by ChrisMarshallNY on Tuesday June 23, 2020 @01:28PM (#23617218)
Yeah, there's a number of ways to reduce GIF/PNG8 sizes.

I started writing Web sites in the mid-'90s, where a page was supposed to be about 30K (quaint, huh?).

The prevailing wisdom, then, was no dither, adaptive palette, and reduce the color palette until it hurts, then back up one.