Color replacement does not work in Photoshop. Replace color command in Photoshop

The ingenious developers of Adobe's gem, perhaps, did not even suspect that Photoshop's Color Replacement tool would become, among other functions, one of the leaders in terms of frequency of use.

Recolor brush

You will find a brush named "Color Replacement" in the "Brush" tool group (in Photoshop versions CS3 and younger). This tool is good for its simplicity (for recoloring objects, you can do without time-consuming selection), but at the same time it is not entirely predictable.

Basically, this circle-and-cross cursor color replacer works like a regular paintbrush, painting over the area first, preserving the texture and texture of the image, but with some caveats.

Firstly, unlike a normal brush, in its settings, in addition to size and hardness, you can set the intervals (when moving), the angle of inclination and the shape of the print, as well as adjust the pen pressure (when using graphic tablets).

In the process of painting, the program continuously analyzes the paint within the brush print, replacing it with the specified base color in accordance with the selected mode.

The default mode is "Chroma", which changes the color and saturation, but the brightness remains the same, and the new hue, of course, will not exactly match the selected color.

In Brightness mode, the original tone is retained, but the brightness changes.

In the "Hue" mode, the color will tonal change to the declared paint, and the original brightness and saturation will be preserved.

By choosing the Color option, we will also change the saturation, keeping the brightness of the original paint.

Saturation mode maintains brightness, but changes the original color's hue and saturation.

To the right of the mode window on the settings panel at the top, there are three options for sampling.

By choosing the first one ("Continuous"), we instruct the program to continuously scan the color in the area of ​​the brushprint as long as we hold down the button while painting over the object.

If we select "Once", the color sample taken on the first click will be used as a sample. This option is suitable for uniformly colored areas.

In the third option ("Background Pattern"), only areas related to the background color will be repainted.

The Constraints parameter defines the extension of the replaced color, as indicated by the mouse over tooltip.

The All Pixels option replaces all pixels in the cursor-targeting area of ​​the brush. With Adjacent Pixels selected (the default), we paint within the brushprint only those that are adjacent to the color pixels directly below the cross. Select Edges will recolor all pixels in the sample, but with emphasis on the edges.

In principle, having selected the appropriate brush size, you can confidently repaint in the boundary zones of the object, even accidentally climbing into a different color, if only the "Tolerance" parameter is correctly selected, which determines the error in choosing relative colors, as the hint says. As the tolerance increases, the range of tones to be replaced expands, and vice versa.

Thus, we can conclude that the "Color Change" brush in "Photoshop" is a rather flexible tool, and, despite its "straightforwardness", it can "mess up" a lot in skillful hands.

All commands that can drastically change the color without destructive consequences for the image are in the "Adjustments" list in the "Image" menu. These are features such as Color Balance, Hue / Saturation, Selective Color, and Replace Color.

In the "Color tone" mode - the "chameleon" object

Another undeservedly rarely mentioned and infrequently used method of color transformation lies in the modest "Hue" blending mode. After selecting the "Color" adjustment layer and choosing the desired paint, the blending mode on this layer is then changed to "Hue". The object, of course, will not be repainted exactly in the specified color, but the hue will change. If you then double-click on the adjustment layer's fill thumbnail, the color picker will open, and you can cycle through the options while watching the chameleon effect on the canvas.

The excess is erased with a soft black brush on the mask of the adjustment layer, which is good.

Of course, there will be more fuss with variegatedly colored objects, so it is better to repaint objects that are more or less uniform in color in this way.

You can create a new layer instead of an adjustment layer, change its blending mode to "Color tone" and, choosing the desired color, paint over the object with a brush, then correct the blemishes with an eraser.

A little about color balance

With Color Balance selected, we can pre-color the selected object using the Cyan-Red, Magenta-Green, and Yellow-Blue color pair sliders. The tonal balance is adjusted in shadows, highlights and midtones.

Hue and saturation

The hue and saturation functions are very often used for tasks such as replacing colors in Photoshop.

The algorithm for changing the color in the dialog box invoked by the Hue / Saturation command is based on adjusting the hue, saturation, and brightness parameters. Here we can shift the overall color gamut of the picture or selection (object) and adjust the colors separately in different parts of the color range by choosing the desired tone with the eyedropper.

In the list of ranges below (under Style), where the default is All, there are six more color ranges that can be processed simultaneously, but with separate parameters.

Given the power of the tool in terms of color correction, recoloring the selected object here is not difficult.

Selective color correction

This function allows you to change the colors according to the model not HSB (hue, saturation, brightness), but CMYK, controlling the amount of cyan, magenta, yellow and black in the selected color. Having selected the object to be recolored in the image, select the required color group in the "Colors" box and use the sliders to adjust its composition.

Sometimes, instead of the "Selective Color" command in the "Image"> "Adjustments" menu, it is better to use the adjustment layer of the same name (Layers> New Adjustment Layer or the button on the layers panel at the bottom). In this case, it becomes possible to correct the effect on the mask of the adjustment layer with the removal of everything superfluous with a black brush.

Replacing white and black

When changing the color using the corrective functions, you may have noticed that the white color does not lend itself to repainting in this way. Replacing white color in "Photoshop" is very simple: if this area is pre-selected, and then, after deleting, recolor.

However, this cardinal solution is destructive. It is justified only when it is not the original drawing itself that is important, but its color. Or, if you just want to give the white a different hue, try switching to CMYK and Selective Color, then return to RGB.

Depending on the uniformity of the color, you can use any tool from the extensive arsenal of tools "Photoshop" to select "Quick Selection", "Background Eraser", " Magic eraser"etc.), but the best option most often it turns out to be "Color Range" in the "Selection" menu. And how the new color will take root in the place of the removed white directly depends on the quality of the selection.

By the way, if you need a replacement in Photoshop, all the reasoning regarding repainting white is also true for this case.

Replace color

From the Adjustments list in the Image menu (or an appropriate adjustment layer), this command is easier to use than Hue / Saturation and produces more predictable results.

In the dialog box, we type the colors to be changed with the help of the pipettes. Use the "Hue", "Saturation" and "Brightness" sliders to achieve the desired effect. To control the selection, it is better to select the "Selected Area" checkbox (the image will be shown as a mask). The "Spread" slider is used to correct the scatter outside the selected area.

This color replacement method is most effective for contrasting and not very variegated images.

Repainting in Lab Mode

One of the most efficient and relatively simple ways recoloring objects is replacing a color in Photoshop using the Lab color mode, although it is desirable to have at least some idea of ​​the Lab color space to use this method effectively.

So, the L coordinate sets the brightness (lightness) value, defined in the range from 0 (darkest) to 100 (lightest), and the color parameters are set by coordinates A (color in the range from green to red) and B (color in the range from blue to yellow).

Thus, in Lab, the brightness value is separated from the chromatic color parameters, which makes it possible to separately affect the brightness, contrast and color of the image. It is this circumstance that sometimes allows you to speed up image processing, for example, if you need to change the color.

True, this option is not suitable for repainting variegated multi-colored objects and objects with complex contours (hair, fur). Let's say you want to change the color of a car. In Lab, replacing a color in Photoshop involves, first of all, transferring an image to this mode.

We transfer the picture to the Lab mode (Image> Mode> Lab), then select the desired color from the libraries by double-clicking on the primary color on the toolbar, and remember the values ​​of the L, A and B channels.

In the Eyedropper toolset, select Color Sampler and place a checkmark ( control point) in the representative area of ​​the auto color to be replaced, thereby calling the "Info" panel.

Now add an adjustment layer "Curves" and for each channel find the position of the curve in accordance with the fixed values, referring to the palette "Info".

The curves of channels A and B must cross the center of the graph, and the curve of the luminance channel L must certainly keep the tilt angle.

Now double-click on the image layer to open the "Layer Style, Blending Options" window. We transfer attention to its lower part ("Overlay if"). Here, by manipulating the sliders for each parameter (L, A and B), we separate the auto from the background or other objects.

We repaint everything

Having mastered the above methods of replacing color, you can recolor almost any object. Depending on its complexity, one or another method may be preferable. For example, changing the hair color in Photoshop is easily accomplished with the Hue / Saturation and Color Balance correction functions, but here the main task is to qualitatively select an object with such a complex (usually) contour.

Most often, a quick mask is used for selection (the button with a dotted ring at the very bottom. Then the selection is made using the special features of the "Refine Edge" command in the "Selection" menu.

The selected area is usually copied to a new layer (Ctrl + J), then apply the above coloring tools to it.

And such simple tasks as a replacement for the color of the eyes in "Photoshop", where are used standard tools allotments are generally resolved in no time. The eye can be selected by choosing Lasso or Oval (for pupils), then, as in the previous case, replace the color by applying a Hue / Saturation adjustment.

The Color Swap brush works well for this task too.

With color everything is still

Most user requests related to repainting objects in the Photoshop program, as a rule, do not specify a specific version of the editor, and if they do, then changing the color in Photoshop CS6 is much more interesting than others.

Perhaps this is due to a more significant update of the program in relation to previous version than it did before. Changes affected background save and autosave functions, selection tools, crop tools, Magic Wand and Eyedropper, brush options, some filters, fill functions, layer editing, interface colors and much more.

There are new possibilities for working with RAW files in new version Camera RAW7, gradient fill, artistic image styling, video editing, finding the desired layer in multi-layered documents, as well as a new color correction Color Lookup, etc.

Nevertheless, the corrective functions in the "Correction" list in the "Image" menu have not undergone any special changes during the program modernization, so recoloring objects, for example, in CS2, and replacing colors in Photoshop CS6 are practically the same in essence. for those owners early versions, who believe that in the new modifications there are more possibilities for replacing colors.

Replacing a color in Photoshop is a simple but fun process. In this tutorial, we will learn how to change the color of various objects in pictures.

We will change the colors of objects in three different ways... In the first two we use special functions of the program, and in the third we will paint the necessary areas by hand.

Method 1: Simple replacement

The first way to replace color is to use a predefined function in Photoshop. Replace Color or "Replace Color" in English. It shows the best result on plain objects. For example, let's take an icon and open it in Photoshop. Next, we will replace the color with any other color that interests us.


So we changed one color to another.

Method 2: color range

The second way, according to the scheme of work, can be said to be identical to the first. But we will look at it in a more difficult image. For example, we have chosen a photo with a car.

As in the first case, we need to specify which color we will replace. To do this, you can create a selection using the color range function. In other words, highlight the image by color.

The result has been achieved. If there are areas of the original color in the image, the procedure can be repeated.

Today we will talk about a tool that you simply cannot do without in photo processing - this is the Brush tool. When I first opened the graphics editor Photoshop, for some reason I immediately wanted to choose this particular tool. I chose this tool apparently because the shortcut of this tool seemed to me more understandable in appearance than all the others ...

I don't remember what I drew then. Probably drew some kind of kalyak, something like what is shown in the video below. And after sitting in Photoshop for almost the whole day, I still did not understand what this Photoshop is "eating" with. At that time, I still did not have the Internet or books about Photoshop; By typing (trial and error), spending a lot of time on learning, I gained experience of communicating with Photoshop, which I am willingly sharing with you today.

Brush tool (B)

Photoshop Brush Tool quick call instrument - the Latin letter "B".

This tool is capable of taking any shape that you define for it, transparency, blending mode, and much more. To have an idea of ​​the work of this tool, you just need to "pick up a brush" and start painting.

In the video on the right, I played around with the brush a little, demonstrating some of the features of this tool.

The "Brush" tool can work both arbitrarily, - as the hand held, and remained ..., and in strictly specified directions, if you use the "Shift" key when drawing.

By changing brush blend modes, you can get fancy color and graphic effects. In the video above, I used the Difference Blend Mode, which inverts the color in a surprising way. In future Photoshop tutorials, we will use the brush's blend modes more than once, so here we will only consider the base of this tool.

There are two ways to change the size (diameter) and hardness of the brush:
1) - Using a special palette of tool parameters (call the tool palette - right-click on the processed area), see the video above;
2) - Using hot keys, see the video below.

Brush tool shortcuts:
{ +Shift- decrease in brush stiffness;
} +Shift- increase in brush stiffness;
[ - reducing the size of the brush;
] - increasing the size of the brush.

The video to the right demonstrates how using keyboard shortcuts can help you quickly change the size of the brush. If each time we changed the size of the brush, we called the tool options palette, this process would drag on for several minutes, since we would have to spend time centering the cursor each time.

Of course, you will not draw such a target as in the video on the right, here we are only considering the very principle of operation of using hot keys, which is very convenient in work. I hope I was able to convince you of the advisability of using hotkeys.

It is convenient to switch between the color of the foreground and background using the key with the Latin letter "X", which is friendly with the Cyrillic letter "CH". But if it is more convenient for you to click on the arrow to switch the color, then please, it's up to you. This does not affect the speed of work.

Pencil tool (B)

Photoshop tool "Pencil", tool shortcut - Latin letter "B". The difference between the "Pencil" and "Brush" tools is only that the "Pencil" does not know how to be as soft as the "Brush", and this is natural. This tool can work in different modes overlay. Actually, the "Pencil" tool is the same "Brush", only without the possibility of adjusting the hardness. The question remains: why did the creators of Photoshop include this tool in the "Brushes" modifiers, because the "Brush" is universal, and besides, it is more convenient to work with. Well, okay, if there is a "Pencil" in the Photoshop toolbar, then someone probably needs it, for example, to draw villi on photos :)

Color Swap tool (B)

Color Replacement Photoshop tool, tool shortcut - Latin letter "B".

The peculiarity of this tool is that it can change the color of editable objects without affecting other objects with a different color that do not participate in the color change. The principle of operation may vary depending on the settings of the instrument.

The video on the right shows an example of how this tool works. It doesn't matter what you edit, bitmap or vector graphics, the tool does two great things.

Notice how the tool works with different colors. If the brush color does not have similar tones or shades in the editable area, then the fill color will remain the original. However, if a color with a similar hue to the original appears in the editable area, the replaced color will experience varying degrees of color gradation. As a result, we will get a different fill color, see the video above.

Changing the settings of the instrument parameters will help you achieve the desired result. In the video above, the parameters were set as shown in the screenshot below.

At the end of the video, you may have noticed that the cyan-gray of the object did not fill with the yellow of the brush. He filled with something in between gray and yellow, that is, a color gradation. Why did it happen? Because in terms of tonality, these two colors are slightly similar. In order for the brush to be able to correctly replace the color, it is necessary to reduce percentage parameter "Tolerance", see the screenshot above. If you set 5% instead of 30%, the result will be completely different. The lower the tolerance percentage, the more accurately the tool will select the color for the fill. Here is such an interesting tool. In what cases to use it, it's up to you. In future articles on photo processing, we probably will not use it, although, everything is possible, stay tuned for new publications.

Mixer Brush tool (B)

Photoshop Mixer Brush tool, tool shortcut - Latin letter "B". The scope of this tool is very wide. The main purpose of the Mixer Brush is retouching and blurring. If a regular "Brush" only fills a particular area with color, then the "Mix Brush" is also capable of mixing (blending) shades of the original color with the color of the object. Depending on the parameters of the instrument, you can get a wide variety of effects. Today we will dwell on this, thank you for your attention.

More on this topic.

I greet you as always, Dear friends... I am very glad to see you on my blog. Do you draw any pictures? And then this week I'm going to publish lessons on the topic of drawing tools. The topic is also quite important for Photoshop, so you shouldn't miss it. Therefore, you desperately need to know how to choose a brush color in Photoshop. Without this, it will be difficult further.

Look at the choice of color itself. Have you noticed that there are two colors (default black and white)? Why do you think? If you hover the mouse over a color, you will see that the front is called the main, and the back is called the background. The background color is usually used for an eraser, gradient, etc., but in a brush plan it works as a complementary color.

The bottom line is that when working with brushes, the base color can be swapped with the background places. To do this, you must press the key X(Latin). This way you will always have two fast changing colors at your fingertips.

But I will not deviate from the topic. To change the color (no matter the main or background), you just need to click on it with the left mouse button. After that, a selection window will open for you, i.e. Color palette. This is where we will choose how we paint our future masterpieces. But we can choose the color in two ways. So we watch and remember.

The first way

On the left side, you will see a large square space, and a little to the right, a vertical strip of flowers. So you choose the color itself from just the same vertical strip, and from the large square - shades of this color. But this only works on the color model. HSB, and the point should be near the letter H... If you put a full stop anywhere else, the whole palette will change. So when choosing a color, let it be better to point there.

To select a color, hold down left button mouse on the slider of the vertical strip, and without releasing the mouse button drag up and down until you find the desired color and the desired palette of shades. Now choose a shade. To do this, move the small circle to the place in the square space where the shade of this color is ideal for you.

And at the same time it will seem to you how your new selected color will look in comparison with the current one.

This is the essence. Feel free to draw.

Second way

Remember in one of the first lessons I talked about? So the second way will be based on the selection of colors from a specific color panel. Here you and RGB, and CMYK, and HSB, and LAB... Remember how each of these models works?

In general, to choose a color, you need to select a specific model and drive in three values ​​that correspond to this model.

For example, let me choose red in the model RGB... To do this, I put in desired cells desired values, that is, in cell R - 255, and in cells G and B by zeros. How is it? Chose the color we want? See for yourself.

Well, if you noticed, then just below the RGB colors there is a special cell for setting the color html code... Those. when on any site a fragment (for example, text) is highlighted in any color (except for links), then be sure their color is set with such a hexadecimal code. There is no need to be afraid of this, it just can be very useful.

Such codes work according to the principle RGB, i.e. The first 2 characters are red, the 2 middle ones are green, and the last 2 are blue. 0 - minimum color value (white), F - maximum value colors (black). It turns out that ff0000 is the same as 255,0,0 in regular RGB, i.e. Red.

Well, if you really want to return everything as it was, i.e. to make the default colors (main - black, background - white), then just press the key D... It's that simple.

I would also like to tell you about one more color selection tool, namely pro. But then I decided that this tool still deserves a separate article, since it has its own nuances and the color is chosen in a slightly different way.

Well, in general, be sure to look Photoshop course for beginners... Everything is described in detail in it, and in absolutely human language. So thanks to these video tutorials, you can easily learn this wonderful image editor in a couple of weeks. Be sure to take a look.

Well, I say goodbye to you. I hope that you have no questions with this topic. I wish you good luck and good mood. Do not forget to subscribe to my blog updates, then you will be happy. See you in other articles. Bye Bye!

Best regards, Dmitry Kostin.

Would mean "another color, give it a working brush." At first glance, this is the same as "mixing a new color on the palette" for simple things. But the very process of choosing and mixing colors in a graphics editor is completely different. To change the color of the working brush in Adobe program Photoshop, left-click on the Foreground Color icon at the bottom of the toolbox. It is this icon that displays the current brush color.

In the "Color Picker (Foreground Color)" dialog box that opens, select the color you need in one of the following ways: by moving the sliders on the vertical color scale, clicking on a certain point of the color field (like an eyedropper), setting the values ​​of the components of this color in the corresponding fields of the palette (RGB, CMYK) or hexadecimal color, which is determined by the table of html colors. Samples of the changing color (new) and the current (current) you can see in the colored rectangles to the right of the color bar.

There is another convenient palette in the program for choosing colors. This is the Color palette. You can open it through the Window> Color menu or by simply clicking “ hotkey»F6. Usually this palette is displayed on the right side of the screen. Select the desired color by moving the red (R), green (G) and blue (B) sliders, or click on the color field at the bottom of the palette and move the cursor over it without releasing the mouse button. The cursor will look like an eyedropper. The changing color is displayed on the base color icon in the same palette.

You can also change the color of the brush in the Swatches palette, which contains various color libraries. By default, this palette is next to the Color palette, but if it is closed, use the Window> Swatches menu command to invoke it. You can select a different color library by clicking on the small arrow in the right upper corner palette. In the list that opens, select the required library.