You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Alpha for PNGs in between (0%..100%) results in funny looking color in CPU rendering only #2857
There is a difference in the pictures that we get when we render with CPU or GPU, it looks that images with CPU does not have the same quality of GPU rendering.
Here is an example:
changed the title [-]Different image resolution on GPU and CPU rendering[/-][+]Alpha for PNGs in between (0%..100%) results in funny looking color in CPU rendering only[/+]on Sep 10, 2014
Even in the GPU rendering case the rendering is not quite correct -- it looks like semitransparent pixels are rendered as white.
In a simple test case with just an <img> element and nothing else, I get correct results if the body has background: transparent, but incorrect results if it has a solid background.
Activity
zwarich commentedon Jul 16, 2014
This looks like a problem with the handling of the alpha channel. I'll take a look.
[-]Different image resolution on GPU and CPU rendering![/-][+]Different image resolution on GPU and CPU rendering[/+][-]Different image resolution on GPU and CPU rendering[/-][+]Alpha for PNGs in between (0%..100%) results in funny looking color in CPU rendering only[/+]mbrubeck commentedon Sep 10, 2014
Even in the GPU rendering case the rendering is not quite correct -- it looks like semitransparent pixels are rendered as white.
In a simple test case with just an
<img>element and nothing else, I get correct results if thebodyhasbackground: transparent, but incorrect results if it has a solid background.pcwalton commentedon Sep 10, 2014
This is because we don't premultiply. PR coming.
net: Premultiply alpha in PNGs.
net: Premultiply alpha in PNGs.
net: Premultiply alpha in PNGs.