weisJ / jsvg

Java SVG renderer
MIT License
126 stars 7 forks source link

Filters should be applied in linear rgb space #71

Open weisJ opened 6 months ago

weisJ commented 6 months ago

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.

weisJ commented 6 months ago

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