United against Banding

Dear lazyweb, do you know any method to render subtle gradients in SVGs dithered? Or is there a renderer that outputs 16bit/channel PNGs? Banding is ruining our efforts in GNOME, openSUSE and Fedora!

7 Responses to “United against Banding”

  1. MDK Says:

    Check http://benno37.livejournal.com/10678.html .

  2. David Schroeder Says:

    How’s this for a roundabout-enough solution:

    Take whatever image you’re working on, without the fine details. Export that, bring it in to Krita at 16 bits/channel, do a blur on it, then add a little noise, then convert to 8 bits/channel, then add the finer details.

    And it’s reassuring that FOSS isn’t alone with this problem. I’ve run into this exact issue with Illustrator, and the general conclusion I’ve found is there’s no way to help it.

  3. Hans Nieser Says:

    This is exactly what’s been bugging me with Inkscape. I actually thought there was some kind of Inkscape-specific bug with gradients, since I couldn’t see any banding in gradients created with GIMP, as it turns out GIMP does dithering by default and my LCD screen is to blame. This makes Inkscape somewhat unfit to design (pixmap) graphics for websites with unless one isn’t bothered by the banding that will be seen on most people’s LCD screens.

  4. ajax Says:

    I’ve been thinking about how to add automatic dithering to cairo for a while now to avoid this problem. Basically you know the, uh, gradient of your gradient at any given point, so if it’s sufficiently flat along either axis that you’d create a band of solid pixels more than (say) ten wide, then add half an LSB of noise to the internal representation of the pixel just before rasterising. If you’re evaluating the fragment color internally at 16bpp before flattening to 8bpp (and I think we are) then this should give you a random dither for basically free.

  5. jimmac Says:

    ajax: show, show, show! :)

  6. M??ir?­n Says:

    Oh this came up on the inkscape-devel list today…


    http://sourceforge.net/mailarchive/forum.php?thread_name=3c3cb8048846fb3293764fd73db0473c%40localhost&forum_name=inkscape-devel

    Wow sourceforge mailing list archives and links to said archives really suck. Sorry about that!

  7. jimmac Says:

    /me sighs on the note of putting that as a preference switch.

Leave a Reply