weisJ / jsvg

Java SVG renderer
MIT License
139 stars 8 forks source link

Filters should be applied in linear rgb space #71

Open weisJ opened 8 months ago

weisJ commented 8 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 8 months ago

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