Comment 13 for bug 180693

Revision history for this message
Craig Marshall (craig9-deactivatedaccount) wrote :

I found that the worst looking banding came when I applied a 3-stop gradient using complete opposites on the colour wheel. e.g. green, magenta, green.

One tried to work aroud the problem using the turbulence based filter above, and had no luck. Here is an alternative method which helped Quartz on #inkscape:

A simple filter made up of a gaussian blur (in the x-axis only, for a left-to-right gradient), followed by a composite filter, using the output of the blur as one input, and the source image as another, and the compositing operator set to "In":

    <filter
       id="filter2995"
       inkscape:label="Remove Banding">
      <feGaussianBlur
         stdDeviation="10 0.01"
         id="feGaussianBlur2997"
         result="result1" />
      <feComposite
         id="feComposite2999"
         in2="SourceGraphic"
         operator="in" />
    </filter>

Craig