3 ms·
> I bring this both to point out that there is a very valid reason to use WebP over JPEG — alpha blending — and that this entire field is still a gigantic mess.
by microcolonel 6y ago
> I bring this both to point out that there is a very valid reason to use WebP over JPEG — alpha blending — and that this entire field is still a gigantic mess.
Yeah, you can do manual alpha masking in webkit, but it's freaky and stupid.
- wnoise 6y agoFull blending, or just masking? i.e. can alpha values take on the full range from 0-1, or are they limited to full on or full off?
- microcolonel 6y agoLooks like mask is standard now. In Webkit it is behind the -webkit-* prefix, and it only implements mask-image (which is what you want anyway). -webkit-mask-image does exactly what you're looking for (poorly) :+ ) The other way to do it is SVG, but if you want that to be data efficient, you generally end up with three HTTP requests at two levels for a single image, or you have base64 and it has to be gzipped or it's larger.