Re: RGB channels are set to zero if alpha is 0.

Bill Spitzak <[email protected]>
Newsgroups gmane.comp.lib.cairo
Message-ID <CAL-8oAgf0PA4x60Y7P5xxUiMVf+VOm1h3HUJm8GttcpWnRUnJw@mail.gmail.com>
On Mon, Aug 28, 2017 at 10:42 AM, Behdad Esfahbod <[email protected]> wrote:
> Really? Majority of PNG files are premultiplied and they render visually
> alright?!  Hard to believe...

Yes because programs that think they are unpremultiplied
double-premultiply the alpha. This results in dark fringes around the
edges but the error is hard to see. My tests were based on png files
found on the web and used in the film industry about 8 years ago,
where it was virtually impossible to find a non-premultiplied one
(ignoring ones with the alpha all 1 and 0 where you cannot tell). It
may be useful to see if the proportion has changed more recently.
-- 
cairo mailing list
[email protected]
https://lists.cairographics.org/mailman/listinfo/cairo
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.