Commit 804ea4b
committed
Bug fixed & compression optimized using CSS color names
- The color optimization code was buggy for some colors such as fuchsia (#FF00FF) which was wrongly converted to red (#F00).
RRGGBB colors were converted to 3-character-length notation RGG when possible and not RGB!
- The use of CSS color names (and not hexadecimal notation) allow smaller notations which means a smaller output result.1 parent ebeb132 commit 804ea4b
1 file changed
+11
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
16 | 22 | | |
| 23 | + | |
17 | 24 | | |
18 | 25 | | |
19 | 26 | | |
| |||
0 commit comments