It is not possible to create a perfect gradient

  • 1
  • Problem
  • Updated 4 months ago
It is not possible to create a gradient over a distance of 256 pixel that has a different greyscale value for each pixel. This behaviour cannot be changed with the "Dither" checkbox. I would suggest to implement another checkbox called "Pixel Perfect" (or similar) which will do what you would expect: get the distance of the gradient, divide it through the number of values to blend and distribute them equally. So, with such an option I would expect a 256 pixel gradient with black and white to have an incremental increase of greyscale values by 1 per pixel.
Photo of Daan

Daan

  • 17 Posts
  • 1 Reply Like

Posted 4 months ago

  • 1
Photo of Barry Rudick

Barry Rudick

  • 22 Posts
  • 0 Reply Likes
I have often seen posterization in gradients created in PS. Many have used noise to smooth them or create in 16 bit can help. I assume there is a quantization error that moves some pixels up or down in luminosity.

My old solution was to create them in Live Picture and use that file as a layer.
Photo of Daan

Daan

  • 17 Posts
  • 1 Reply Like
The suggestion to posterize won't work, because you'd have to set the levels to 256 and you will have exactly the same result. 

I have tried to create a gradient in 16 bit and I have encountered the same issue.
Smoothing and/or adding noise didn't work either.

The only workaround that guarantees a perfect 256 greyscale value gradient is to select on line of pixels at a time and fill them with the corresponding colour manually.