Fringe Focus
Home Work Store About Contact
Twitter Dribbble Flickr Facebook Vimeo
Robot Suit Rock: How To Make Both Daft Punk Helmets Poster: Eight Balls Poster: The Shire Poster: Mordor Poster: Helm’s Deep Process: Derrick Rose T-Shirt Poster Prints Are For Sale! CSS Sprites. They’re Awesome. Use Them. Poster: The Deadline Fringe Focus Posters Around the World
Poster: Requiem for a Dream Paper Doll Pinups Shoot New Fringe Focus Portfolio Fringe Focus Posters Around the World Poster Prints Are For Sale!
September 2011 August 2011 July 2011 May 2011 March 2011 February 2011 January 2011 December 2010 September 2010 August 2010 July 2010 June 2010 May 2010 April 2010 March 2010 February 2010
Artwork Business Clients Contest Design Freelancing Fringe Focus HTML / CSS Photography Photoshop Posters Process Technical Tutorial Video Web Design

Blog \ Photoshop \ Less Janky — How to Stop Banding in Your Images

Less Janky — How to Stop Banding in Your Images

Remove Banding - Title

Banding is one of the universal annoyances that every designer has to deal with.  Although it’s certainly more common among web designers, banding has also given plenty of headaches to print designers and photographers. Banding is a newer problem; unique to the digital realm, as old-school methods of photography and publishing weren’t limited to the digital color space. As the problem and its causes have only been recently defined, many designers may lack the techniques necessary to combat this subtle and tricky problem. If you’re not familiar with the term or are sick of reading this sentence, let’s cut to an image.

Some Banding in Action due to Compression:

Remove Banding - Slide 1

This is an overly exaggerated example of banding effects on a photo I took.  In the compressed version on the right, the sky doesn’t contain enough blues to portray a smooth transition. This is because the compressed version is trying to save space by limiting the number of colors used.  This actually works really well in the building section of the photograph because our eyes don’t pick up on subtle brightness changes when looking at busy or high-contrast areas. It’s only when the color jumps from “Slightly Light Blue” to “Slightly Less Light Blue” that we really notice.

It’s as if the compression algorithm thought “Hey man, that looks like solid blue. Six colors ought to cover it–done!” Idiot.

While compression is a common cause of banding, it’s important to remember that all digital images share this property of stepping harshly from one color to the next.  Indeed, each pixel is its own little square, not blending with any pixels around it. Fortunately pixels are much too small for our eyes to detect that stepping.  It’s only when compressors force similar areas of color into much larger groups that we pick up on the changes.

Banding with the Gradient Tool:

Remove Banding - Slide 2

The gradient on the left side was created by picking two colors and fading them together with Photoshop’s gradient tool. The gradient on the right side only used one color, and simply faded itself from 100% to 0% opacity.  Obviously they both achieve very similar results, and perhaps that’s why most designers may use the techniques interchangeably. If you look very closely, however, the gradient on the right actually shows some harsh stepping from one shade to the next.

Add some levels adjustments, and you can really see the difference:

Remove Banding - Slide 3

The good news is that Photoshop’s gradient tool handles gradients pretty well with multiple colors.  Photoshop does the math and immediately rasterizes the outcome.  Through a combination of dithering and subtle noise the fade is rendered pretty smoothly.  You can even hit the levels or curves adjustments later and it looks decent.  The gradient on the right, however, didn’t have two colors that Photoshop could do the math for, so no dithering or noise could be applied.  Without knowing what color it would be fading to, it simply renders the gradient in bands ranging from 100% opacity to 0% opacity.

Noise is the Solution! Sometimes…

The solution that is often thrown about is “Add a bunch of noise dude!”. While it’s true that adding noise to break up the bands is effective, you have to be careful that you aren’t bringing a bazooka to a knife fight. Adding too much noise unnecessarily will degrade your image and take clarity out of your highlights and shadows.

Fix #1 – Use Two Color Gradients

To prevent banding while using Photoshop’s gradient tool, always use at least two colors. Fading a single color to transparency will not yield pretty results.  If you absolutely must fade a color to transparency, make sure the gradient is small, or that the range of color difference in the gradient is high.  It’s the long and subtle gradients that cause problems.

Fix #2 – Use Noise in One Channel

If you’re experiencing banding when compressing or saving your images, you may want to add noise to prevent noticeable stepping.  If you want to do this without harming ALL of your color data try applying noise to only one channel–ideally, the channel where the most banding is occurring.

1. Select the ‘Channels’ tab next to your layers palette.

2. Click on a color channel.  Perhaps red if you have banding in a sunset photo, or blue if there’s banding in a bright blue sky.  Choose whichever channel works best in your situation.

3. Choose Filter > Noise > Add Noise. Check ‘Gaussian’ as the distribution format. Choose 1-2% as the amount, as you can always add more noise later if necessary.

Save your image out as you did before, and ideally this method should have decreased your level of banding.

Fix #3 – Use Noise in Another Layer

If you absolutely need to maintain a lot of integrity in your photo, but still need to remove banding in some area, try adding the noise to its own layer.

1. Create a new layer and fill it with 50% gray.  That’s about #808080 if you’re working in RGB.

2. Place this layer above the image you’re adding noise to. In the layers palette, choose ‘Overlay’ as the blending mode.

3. Add noise to this gray layer, 2-3% should suffice.

You’ll notice that the noise does not affect any very bright or dark areas of your image.  Because the noise is in ‘Overlay’ mode, you’re free to crank up the noise as high as needed, without destroying the quality of your highlights or shadows.

Another benefit to having the noise in its own layer is that you can use your eraser tool to remove noise from areas where it is not needed.  You could even take one step further, creating a complex mask and applying it to the noise layer, giving you full control over which areas are affected.

No More Banding!

Hopefully some of these ideas got rid of your nasty banding issues.  If you have any other tips or tricks to solve this problem, drop me a line in the comments.

Other Resources to Regarding Banding:

Wikipedia – Posterization

Greyscale Gorilla – How to Remove Banding Artifacts in After Effects


3 Comments
February 18th, 2010
Categories: Photoshop | Technical | Tutorial | Web Design

1
markinyanMarch 6, 2010 | 11:20 pm

Noise is a sole solution.


2
GraydaApril 7, 2011 | 12:13 am

I recently had a few images rejected from iStockPhoto because of banding. I wasn’t aware of it until I looked into it. Now I know what it is and what causes it, I can take steps to prevent it.

A good solution is to re-do the image. Saving a single file multiple times will eventually chip away at the quality and cause banding. If you have the original, straight-from-the-camera show (e.g. the RAW file or even the original JPEG) then use that each time you need to save. Don’t save, quit, open the modified file and repeat.

Might also want to look at increasing the resolution or quality on your camera if this is a frequent issue. Other solution is to buy a new camera if you’re serious about taking good shots ;)


3
karl bratbyOctober 21, 2011 | 4:06 pm

i have banding issues quite often with low key studio portraits with graduated light on the background, with the color or tonal stepping being quite marked, this was on my nikon d3x, i find it much better and almost gone with hasselblad h4d-40 , true 16 bit, 12+ stops of dynamic range and hey presto its gone, most i believe is caused by the smallish d range of dslr , the anti alaising filter and 12/14 bit images..

but only my findings

Karl Bratby FBIPP





Home Work Store About Contact
Twitter Dribbble Flickr Facebook Vimeo
All artwork on this site (unless otherwise stated) is:
© Copyright 2012 Rob Loukotka | All Rights Reserved
About Rob Loukotka Rob Loukotka is a graphic designer, artist, and co-owner of Collision Labs, a creative design studio in Chicago. Rob's work is a mix of brand identities, websites, t-shirts, visual effects, photography, and anything else he can get his hands on. If you'd like to work with Rob, or if you just want to see more design work, check out Collision Labs.