
bulia byak wrote:
On Wed, Apr 22, 2009 at 8:50 AM, Jasper van de Gronde <th.v.d.gronde@...528...> wrote:
I don't think it's a good idea at this time to truely "solve" this problem. But perhaps we could make sure that new filters created by Inkscape automatically have their color-interpolation-filters attribute set to sRGB? (I have no idea how to do that, so any help is appreciated.)
If that fixes the rendering discrepancy, of course let's do it. Later when we enable Inkscape to handle other values, this attribute in old files will not hurt as it is a compliant way to set the default. It is easy to add for all filters Inkscape writes to SVG by modifying sp_filter_write in sp-filter.cpp, please also add a comment there explaining why it's needed.
I don't think that's the right solution, as it is *not* the default. So technically all filters Inkscape has made (and frankly most filters in general) effectively have color-interpolation-filters="linearRGB", while Inkscape treats every filter as if it had color-interpolation-filters="sRGB".
So writing this property to *any* file Inkscape writes could suddenly cause old files to render differently than they did (not in Inkscape but in other renderers). Perhaps a minor nuisance (unless you're wondering why Batik suddenly renders your file completely differently), but it would be nicer to just do it for newly created filters.