net: Premultiply alpha in PNGs.

Closes #2857.
This commit is contained in:
Patrick Walton 2014-09-10 16:57:14 -07:00
parent 3bd5ef3384
commit a3465d2962
7 changed files with 44 additions and 2 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.1 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB

Before After
Before After

View file

@ -0,0 +1,13 @@
<!DOCTYPE html>
<html>
<head>
<title>Kaboom</title>
<style>
body {
background: #00ff00;
}
</style>
</head>
<body><img src=alpha_png_a.png></body>
</html>

BIN
tests/ref/alpha_png_a.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

View file

@ -0,0 +1,13 @@
<!DOCTYPE html>
<html>
<head>
<title>Kaboom</title>
<style>
body {
background: #00ff00;
}
</style>
</head>
<body><img src=alpha_png_b.png></body>
</html>

BIN
tests/ref/alpha_png_b.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

View file

@ -111,3 +111,4 @@ flaky_gpu,flaky_linux == acid2_noscroll.html acid2_ref_broken.html
== float_right_intrinsic_width_a.html float_right_intrinsic_width_ref.html
== fixed_width_overrides_child_intrinsic_width_a.html fixed_width_overrides_child_intrinsic_width_ref.html
== abs_float_pref_width_a.html abs_float_pref_width_ref.html
== alpha_png_a.html alpha_png_b.html