Turn dark colors black

237 views2 repliesLast post: 9/28/2005
how can I turn dark colors (darker than a threshold, say (333333)) into (000000)? More generally, I would like to do something like this Dim Threshold = (some string),
Dim NewColor= (some string)
If Sum RGB < Threshold Then Color = NewColor

Hope I'm clear-ish,

TIA
#1
Paolo Pignatelli wrote:
how can I turn dark colors (darker than a threshold, say (333333)) into (000000)? More generally, I would like to do something like this Dim Threshold = (some string),
Dim NewColor= (some string)
If Sum RGB < Threshold Then Color = NewColor

Hope I'm clear-ish,

TIA

Open your image in Photoshop. Go to Image->Adjustments->Levels...

Drag the black triangle under the histogram in the Levels window to the right, to the place where the dark color (your 333333) is, you want to be black. This will darken the other colors too, but sliding the middle triangle to the left will fix this.

Another method is Image->Adjustment->Replace color...

Then select the color(range) you want to be black. Play with the fuzziness to achieve this. You can add things to your selection by using the icon with the eyedropper with the plus sign. After that, drag the lightness slider completely to the left (-100).

Good luck,
Waldo
#2
In article <w8w_e.37160$>,
"Paolo Pignatelli" wrote:

how can I turn dark colors (darker than a threshold, say (333333)) into (000000)?

Select->Color Range, then Edit->Fill is one way to do this.

Image->Adjust->Curves is another.

Image->Adjust->Selective Colors, and then add black to shadows, may work as well.

--
Art, photography, shareware, polyamory, literature, kink: all at http://www.xeromag.com/franklin.html
#3