Change the color of an element in Photoshop. Description of the Color Replacement tool in Photoshop


Actually exists many ways to change the color of an object in Photoshop. Previously, we already looked at how to do this using, and also learned how to change hair color in Photoshop using.

These are not all methods, today I will show two very simple ones, and in future articles I will talk about a couple more methods using other adjustment layers.

Method No. 1

I will briefly talk about the application of this method. Open the image and create a new layer (I remind you of all the techniques).

Then change the blending mode of this layer by selecting Hue from the drop-down list at the top of the Layers palette (located at the bottom of the list).

After that, select by pressing the B key, click on the foreground color indicator, in the palette dialog box that appears, select a shade and click on the OK button. Having previously selected a new layer, draw on top of the object.

If you paint over the excess, you can temporarily select the Eraser tool by pressing and holding the E key. You can prevent such situations in advance by adding a layer mask to the new layer and hiding the areas that do not need to be changed with black.

Note

If the area you are repainting is surrounded by black, white and gray, you can safely paint over the latter and they will not change at all. This is because in the Hue blend mode, areas filled with color only affect those areas of the underlying layer that already contain color.

Method No. 2

Remember the menu command? Similar menu command Replace color can be used to highlight one shade and replace it with another. This command works very well if the color that needs to be replaced is more or less uniform and concentrated in a certain area, like the car body in the picture above.

Selecting the command from the menu Image - Correction - Replace Color, you will see a dialog box of the same name.

It already has the Eyedropper tool selected, so click on the shade in the image that you want to replace. It will appear in a square with the inscription Color in the control group Selection at the top of the dialog box.

In the control group Replacement at the bottom of the dialog box, click on the square located above the inscription Result to select a new shade. When you click the OK button. If you need to adjust the selected shade, you can use the sliders Color tone, Saturation And Brightness(also found in the Selection control group). Here's what happened:

Please note that in addition to the ordinary pipette, there are pipettes with small “+” (plus) and “-” (minus) icons nearby. Use them to expand/narrow the range of shades that need to be changed.

As you can see, I overdid it a little and my car wheels also turned purple. This suggests that this method may not always be useful.

If you notice an error in the text, select it and press Ctrl + Enter. Thank you!

Good day everyone! Today we will learn how to change the color of an object. Sometimes it becomes necessary to change the color of clothing in a photo to highlight some details. This very useful skill will be very useful to you, since replacing colors on an object allows you to refresh your work and give it originality. It's simple, and today's episode will contain different examples.

If you suddenly decide to tune your car in real life, and don’t know what color is best to choose, then you can try Photoshop here for starters. Repainting for real is expensive, but on a computer it’s just the thing. You can see the result and make the right decision.

There are several ways to change the color of an object. We will consider them. The first way is to use the built-in color change function, or color replacement. Let's get to know him first. As usual, load the image and duplicate the layer. Next, open in the top menu “Image” - “Correction” - “Replace Color”.

A window will open in front of us in which we need to select the color to be replaced and the color that will replace it.

Let's start by checking the box in the first line (if not checked) for localized color sets. These are the standard colors available in the program. Next, choose the color that we are changing, for example, the red color of the insect. Click on the pipette (the first of three icons) and press the pipette on the insect’s body in the square window below.

At the same time, the replacement shade will appear in the window with the name of the color. Please note that the next line is “scatter. You can set it to "maximum". The higher this setting is, the more colors it will capture. At the bottom of the window, options for replacing colors are shown.

You can use the slider, moving it from right to left, choosing a color, or you can immediately click on the colored square and in the color selection window that appears, set the desired one, for example, blue. Next, use the sliders to adjust the saturation of this color and brightness. Having done all this, click OK and get the result:

The ladybug turned from red to blue. The second color change option is slightly similar to the first, but the operations are carried out differently. This procedure can be called color selection. Earlier we talked about car tuning, so let’s take a car as an example. Load the image and go again to the top menu “Selection” - “Color Range”.

A window will open in front of us, slightly similar to the previous one. We also set the spread to the maximum, and use the “Pipette” to click on the red color of the car. It turned white in the viewing window.

Having completed all the necessary operations, click OK and, as a result, we get a picture of a car in which the red color is highlighted with a dashed flickering line. We ensured that only the necessary areas of the picture of a certain color were highlighted. And we did not resort to classic selection tools like Lasso and others.

Now go to “Image” - “Correction” - “Hue/Saturation”.

The settings window will open. In the “Toning” line, put a tick. Next, use the slider to select the desired color tone. In my version - green. We adjust the brightness and saturation as you like.

When you have reached the desired option, click OK. After that, remove the selection and get the result. The car went from red to green. If this color does not suit you, we do the same thing step by step, but choose a different color.

These are such simple operations, and the results are impressive. Fast and accurate. You've just gotten an idea of ​​computer color matching. If you also know the computer code of car paint, you can try to select real colors.

Change the color of the object to white

In this example, we repaint the object white. Let's take the same red car as an example and repaint it white. First, let's go to layers - new adjustment layer - black and white.

As a result, a new layer will appear and its adjustment window will open.

Here we move the sliders, especially the top red one, since the car was red, until we get the desired result.

How to change the color of an object using a sample in Photoshop?

You can also change the color of an object by creating a template or sample of the desired color. We create a new window in the program, in which we paint the background in the desired color, for example blue.

Next we move on to the picture that needs to be recolored. Here we select selection - color range. Now use the eyedropper to click on the color to change. Use the eyedropper with the + sign to add selection points and click OK. If, as a result, not only the desired object is selected, but also neighboring areas, do it as follows.

Select the lasso tool, and from the top menu use the add to selected area and subtract from selected area buttons.

Using the lasso tool, draw around unnecessary areas (with the button activated, subtract from the selected area). As a result, unnecessary areas will be removed.

Having thus performed the necessary manipulations, we will obtain the desired selection, namely a clearly red car.

Go to image – correction – select color.

A window will open in front of us.

Here you first need to open the source drop-down menu and select the picture with the created blue color in it. She will appear in the window nearby.

At the same time, the color of the car will change. Now, by moving the luminosity, color intensity and weaken sliders, we find the desired color option

Once you get the desired result, click OK and remove the selection. The picture has changed color. Well, for clarity, here’s a short video in which the sky above a girl’s head on the beach is repainted using the Eyedropper and Gradient tools.

Replace the color of an object using the Eyedropper tool

Above we talked about how to change the color according to the sample. In the described version, a created Photoshop document template was used. However, you can select the color to change in the edited picture itself. To do this, there is an eyedropper tool, which is located on the toolbar (sixth from the top).

If you need to create a color scheme that will be the same as that of the image, then the eyedropper is just designed for this. Having selected the eyedropper, you need to click on the desired color and it will immediately appear in the primary color selection square. If you do not click the mouse button, but hold it down, you will see that a sample ring has formed around the pipette.

If you move the cursor with the eyedropper over the picture, you will see how the color on the ring changes. The upper part shows the selected color, and the lower part shows the original color. So, these are actions with the eyedropper tool. Now how to use it to change the color of an object. To do this, you will need to perform a number of operations. The first is to select that part of the picture whose color needs to be changed. For example, in a photo with a red car, you need to repaint the side mirror in one of the color schemes of the entire picture. For example, take the black color of the bumper.

Select the quick selection tool or any other tool that is more convenient for you and select the area. Since the object in the example is not complex, I used a magnetic lasso.

Now select the eyedropper tool, click on the black color of the bumper and see that the desired one has appeared in the primary color square.

The result, of course, is not the same as in the options described earlier, but if you work on correcting the resulting image, you can achieve more realistic results.

Good luck in mastering the program!

There are dozens of ways to change colors in Adobe Photoshop. The easiest and fastest is to use the special command Replace color or “Replace color”. This function is convenient to use when working with any object in a photograph. This command is also useful when replacing the color of several small details scattered chaotically throughout the image. This article describes detailed step-by-step instructions for performing this simple task.

Open the image in Photoshop. Create a duplicate of the main layer. To do this, go to the “Layer” tab in the top menu and select “Duplicate Layer” or press Ctrl+J. Go to the “Image” tab. Select “Adjustments” – “Replace Color”. A dialog box will appear. At the top of it, check the box next to Localized Color Clusters . Below there are 3 pipettes. With the first one selected, click on the area of ​​the object where you want to change the color. It will appear in the top square of the dialog box.


An eyedropper with a plus sign adds an area. Use it when there are unselected areas on the object. Eyedropper with minus – decreases that part of the image that cannot be replaced with color.


Adjust the Scatter setting. If the slider is left at the beginning, only those pixels that exactly match the color of the sample will be replaced. At maximum parameter values, the program will replace all shades of the selected color. Configure the “Replace” option. At the bottom of the dialog box are three commands: hue, saturation, and brightness. Use them to select the color and desired shade to replace. Focus on the square on the right with the inscription “Result”.


Click “OK”. A good effect is obtained in contrasting photographs, especially in the absence of similar shades of changing color. If there are many tones of the selected paint, but you only need to change one area, first select it using the appropriate tool on the taskbar. Thus, changing the color of any object in Photoshop is simple and quick.


How to change the color of an object in Photoshop?

Probably every girl has thought about changing her hair color at least once in her life. But not everyone decided to do this. After all, a new color can either decorate or ruin the whole image. But how can you check this before painting? It's very simple, you just need to use the Adobe Photoshop photo editor.

So, open your photo using the File > Open command or the keyboard shortcut Ctrl + O. Select the hair using the Magic Wand tool (W key).

To do this: set the tolerance, and select the desired part of the photo, alternating the “Add to selected area” (1) and “Subtract from selected area” (2) buttons. If the Magic Wand has selected too large an area, you need to reduce the tolerance.

In the Image menu, select the Correction item and the “Color Balance…” sub-item or press Ctrl + B. In the window that opens, you can change the color of the selected part of the photo (in this case, hair) by adjusting the sliders in one direction or another.

When you get the color you want, click OK. If the hair color turns out to be too dull, or, conversely, too bright, in the Correction item, select the “Brightness/Contrast...” sub-item.

Move the sliders left or right to set the desired contrast and brightness.

Now save the image in a new file, compare it with the old one, and draw a conclusion: do you need to change your hair color? :)

Of course, in Photoshop you can change not only hair color. It could be the color of a dress, a car, the sky... In general, whatever your heart desires!

In this tutorial, we'll take a look at the color replacement program and learn how it can quickly change the color of objects in a photo.

We will show you not the most professional, but the easiest and fastest way to change the color in an image. This method doesn't always give the desired result, but it usually works well for simple tasks. It's a simple tool and worth a try before moving on to more complex and time-consuming methods.

Color Replacement Tool

The Color Replacement Tool was first introduced in Photoshop CS, and if you're working in Photoshop CS or CS2, you can find it grouped with the Healing Brush tool.

If you have Photoshop CS3 or CS4, CS5 or CS6, click on the Brush tool icon and hold it until a drop-down list of other tools in the group appears, select “Color Replacement”.

Once you select the Color Replacement tool, your mouse cursor will turn into a circle with a small cross in the center.

You can adjust the size of the circle using hotkeys - brackets [ or ]. The left bracket reduces the size, the right one increases it. To adjust the hardness of the brush, add a Shift keystroke (Shift+left square bracket makes the edges soft, Shift+right square bracket makes the brush harder).

How the Color Replacement tool works:

When you drag the Color Replacement tool on an image, Photoshop continuously scans the color swatch currently under the crosshairs. This is the color that will be replaced with the current foreground color. Any other pixels that surround the round cursor also change color as it moves over the object.

For example, if you place the cursor on a blue color in a photo and the foreground color is red, the color underneath the cursor will change to red in the cursor's area of ​​effect. There are several options for customizing the tools in the top bar, but we'll look at that later.

In the Tools palette you can see the current color settings. The default color is black:

To change the foreground color, click on the top square (color swatch) and select any new color from the color palette. Choose green color. Click OK and close the color picker.


Look at the tool palette. The foreground color pattern has changed. Now the foreground color is green. Now, if we paint on the image with the Color Replacement tool, the original color will be replaced with green:

Let's take an example of a photograph of a girl with balloons:


She looks happy with a blue balloon in her hand, but maybe she would like to have a green balloon. Let's see what we can do for her. Using the “Color Replacement” tool, clicking on the ball with the cursor will begin moving inside it. Photoshop begins to replace the blue color with green.


To change the color of the rest of the ball to green, you just need to hold down the mouse button.

If you accidentally go beyond the boundaries of the ball and hit the yellow wall behind it, Photoshop will begin to change the color from yellow to green:

Tolerance

Everything is simple and hassle-free until you reach the edges of the ball. If you look closely, you will notice that the edges of the ball are not completely closed, a blue stripe is noticeable.

We've already mentioned that the Color Replacement tool has several options that you can customize in the Control Panel. One of these parameters is “tolerance”. “Tolerance” determines the sensitivity to the color being replaced. The default tolerance is 30%, which is a good starting point. But this is not enough for our case. We increase the tolerance to 50%, which will allow the Color Replacement tool to affect a wider range of colors:

We have established greater tolerance. Now, let's undo the last step and try finishing the edges again.


We finish processing in the remaining areas and our blue ball magically turns into green, thanks to the “Color Replacement” tool:

Use color from image

In the example above, we randomly selected a new ball color from the color picker in Photoshop. You can just as easily select a color directly from the photo itself. To do this, with the Color Replacement Tool active, press the Alt key and your cursor turns into an Eyedropper Tool.

Click on the area of ​​the photo that contains the color you want to use. Photoshop will make this color the main background color. In the Foreground and Background color icon, the top square changes to the color you selected.

Let's take the color of the girl's blouse:


If you look at the Foreground color swatch in the Tools panel, you'll see that the color you clicked on has become the foreground color:

We can paint the ball with this color again using the Color Replacement tool:


Blend Modes

Blend Modes

The reason the Color Replacement tool preserves volume and texture is because it uses blend modes to blend new colors.
The new color interacts with the previous color and this effect is obtained. You can see blending modes in the top settings menu. There are four of them: hue, saturation, color and brightness (Hue, Saturation, Color, and Luminosity). The default mode is Color.

If you've ever studied color theory, you've probably heard that color is made up of hue, saturation, and brightness. You can choose any blending mode depending on which of these three aspects of the original color you want to affect.

Hue: When you apply Hue mode, only the base color will change. Will not change the saturation and brightness of the original color. This mode is useful for images where the colors are not very intense and it usually produces very little change.

Saturation: The “Saturation” mode only changes the saturation of the original color. Hue and brightness are not affected. This mode is useful for reducing the intensity of a color, or removing color completely.

Color: Color mode is the default and changes hue and saturation. The brightness will remain unchanged. This is the blending mode you will use most often.

Luminosity: Finally, Luminosity mode changes the brightness of the original color to the brightness of the new color. Hue and saturation remain unchanged.

Let's take another photo with balls:


One way to make one balloon stand out is to reduce the color saturation of the other balloons. We will not change the actual color of the balls, but only the intensity of the colors. In the Blending Modes tab, I'll select the Saturation mode.

If we wanted to completely desaturate the balloons, we would set the base color to black, white or gray, but since we want a more subtle effect, we'll just take one of the less saturated colors from the image. While holding down my Alt (Win) / Option (Mac) key, we temporarily switch to the Eyedropper Tool, and click on the color we want to use. We will choose a less saturated yellow color. The color itself doesn't have any meaning since the blend mode won't change the original color. The mode will only affect the saturation:


Select the “Color Replacement” tool and paint on those balls on which we want to reduce the saturation level, making them paler. The brush size can be adjusted using square brackets. If necessary, adjust the tolerance level. In the example below you can see how different the original shade of the ball is from the changed one.

Paint over the other balls. Their saturation decreases. This is what the result looks like:


Brightness Issues

Unfortunately, there are situations in which using the Replace Color tool causes difficulties.

These are cases where there is a big difference between the brightness of the original color and the replacement color. For example, we want to change the hue of the top orange ball to the purple color of the other ball. It seems easy to do, but...

First, let's return all the colors of the balls to their original state. To do this, go to the menu File - Revert. Then take a color sample from the purple ball by clicking on it while holding down the Alt key to switch to the eyedropper.

Set the blending mode to Color. This is the default value. Then we start painting over the orange ball to change its color to dark purple. Here's the result:


Hm. It's definitely purple, but it doesn't quite look like other purple balls, does it? The problem is that our orange ball is much brighter than the purple balls. The set blending mode does not affect the brightness. It only affects color. Let's change the blending mode to “Brightness”/”Luminosity”:

Let's undo all previous actions and return the ball to orange, and then set the blending mode to “Brightness” / “Luminosity”. Now we paint the ball dark purple.


It's safe to say that the result is bad. In the “Brightness”/”Luminosity” mode, the ball became brighter, but it remained orange and lost its structure.
The problem is that there is too much difference in the brightness of objects. The Color Replacement tool is great for simple tasks where you just need to change the hue or saturation of a color, but if there are too many differences between the brightness of two elements in an image, you'll need to choose other color replacement methods.

Let's take another look at the “Color Replacement Tool”.

In the top menu we see three icons depicting pipettes. Each of these icons represents an option for selecting a color sample to work with (Sampling). We look from left to right: test - continuously “Continuous” - set by default; sample - once “Once”; sample - sample background “Background Swatch”. To switch from one option to another, you simply need to activate the selected icon.

Let's consider the options.

Test - continuously “Continuous”. In this option, the color selection will be made by the tool continuously while you hold down the mouse button and move the cursor over the image. This option can be used when you need numerous and complex color changes in an object.

With the “Once” test, Photoshop respects the color you clicked on, no matter how long you hover over the image. This option is best for replacing large areas of uniform color.

Sample background “Background Swatch”. You probably won't use this option very often. Here the background color replaces the original color. Only those pixels in the image that match the background color will be replaced. To do this, you need to select a shade from the color palette that best matches the color of the image. This can be done by clicking on the bottom square of the color icon. Adjust the tolerance value if the shade does not suit you.

“Restrictions”/ “Limits”

The next option for the Color Replacement tool controls the location of the pixels to be replaced and is called “Limits”. There are three color detection options: Contiguous, Discontinuous, and Find Edges.

Most often you will use the first two.

The default constraint type is “Contiguous”/ “Contiguous”. In this version, the “Color Replacement Tool” recolors the pixels that are under the cross within the cursor. The tool will not affect pixels that match the selected color but are separated from the cursor by an area of ​​a different color. At least until the cursor is in these zones.

The “Discontinuous” constraint type replaces all pixels within the cursor.

The final type of edge highlighting, “Find Edges,” replaces color in areas that have a tint of the selected color, preserving the outline of the object's edges.

Let’s look at the last option in the top settings menu for the “Smoothing”/”Anti-aliasing” tool. Use this option if you need to smooth the edges of an object's precise outline. If you don't need anti-aliasing, uncheck the box.

Good luck with your processing ;-))







2024 gtavrl.ru.