3 ms·
WebP gave me alpha transparency with lossy images, which came in handy at the time. It was also not bogged down by patents and licensing. Plus like others said,
by adzm 9mo ago
WebP gave me alpha transparency with lossy images, which came in handy at the time. It was also not bogged down by patents and licensing. Plus like others said, if you support vp8 video, you pretty much already have a webp codec, same with AV1 and avif
- archerx 9mo agoLossy PNGs exist with transparency.
- adzm 9mo agoDo you mean lossless? PNGs are not lossy. A large photo with alpha channel in a lossless png could easily be 20x the size of a lossy webp
- Semaphor 9mo agoPNG of course can be lossy. They aren’t great at it, but depending on the image can be good enough.
- archerx 9mo agoNo I meant lossy. This is the library I use; https://pngquant.org/ https://pngquant.org/
- thunderfork 9mo agoPre-processing does not a codec make (this is why .gif is considered lossless even though you lose all that 24-bit colour goodness)
- archerx 9mo agoFair enough but it gets the job done well none the less.
- WhitneyLand 9mo agoPNG as a format is not lossy, it uses deflate. What you’re referring to is pngquant which uses dithering/reduces colors to allow the PNG to compress to a smaller size. So the “loss” is happening independent of the format.