weisJ/jsvg

Filters should be applied in linear rgb space

Opened this issue · 1 comments

For the most part this doesn't make that much of a difference. However for feColorMatrix the difference is very much noticeable. Fixing this might also make gaussian blurs more closely match the spec/batik.

Currently colourspaces aren't checked. In particular feColorMatrix always filters in sRGB.

feColorMatrix and feBlend now do this correctly. Other filters will need to follow.