[Webkit-unassigned] [Bug 21502] CSS Masks use PNG Alpha, which is sub-optimal

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Oct 9 10:57:26 PDT 2008


https://bugs.webkit.org/show_bug.cgi?id=21502





------- Comment #2 from mail at matthewwilcox.com  2008-10-09 10:57 PDT -------
Why would anyone have an existing image with existing alpha that would be
suitable for this effect? I don't want to use this just to mask an image (in
which case I may as well just spit out a 24bit Alpha enabled PNG in the
mark-up), I want to use it to mask content areas too.

Any way you cut it, you have to make an image with a greyscale mask - if only
in order to make the Alpha PNG itself in the first place (e.g., you create the
alpha mask in photoshop by creating a greyscale mask and applying it to the
layer).

Would it not be better to cut the complication and file-size overheads out by
allowing any image file to act as a mask based on the luminance values of the
image pixels. This lowers the barrier to entry significantly (i.e, you don't
need to understand how to make an Alpha image in an image manipulation
program), and means file sizes are a lot lower (JPGs are a lot smaller than
24bit PNGs).


-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list