Commit 3158dfc
committed
Unpremultiply raster output before putImageData
hb-raster outputs premultiplied BGRA, but ImageData expects
non-premultiplied RGBA. Without unpremultiply, semi-transparent
pixels appear too dark (grayish gradients instead of clean color
fading to transparent).
Assisted-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 2603e21 commit 3158dfc
1 file changed
+10
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
817 | 817 | | |
818 | 818 | | |
819 | 819 | | |
820 | | - | |
| 820 | + | |
| 821 | + | |
821 | 822 | | |
822 | | - | |
823 | | - | |
| 823 | + | |
| 824 | + | |
| 825 | + | |
| 826 | + | |
| 827 | + | |
| 828 | + | |
| 829 | + | |
| 830 | + | |
824 | 831 | | |
825 | 832 | | |
826 | 833 | | |
| |||
0 commit comments