Jump to content
cwmbrancon

'Replace Colour' - How? (Affinity Photo)

Recommended Posts

Just thought I'd chime in: I'm not a professional and I've never used Photoshop. I just like playing around with image-editing software. I already owned Affinity Designer and Affinity Publisher, but I bought Affinity Photo this weekend because it was 50% off. I've fiddled around with it and watched a lot of tutorial videos and the program seems fantastic. However, I also own Pixelmator Pro, which I bought over a year ago. I haven't used it a lot and it definitely now feels limited compared to Affinity Photo, especially because Pixelmator Pro doesn't have anything similar to Affinity Photo's adjustment-layer masking. However, Pixelmator Pro has a really simple Replace Color feature that works well. You first choose the color you want replaced from the color picker or by clicking on a color in the image. Then you do the same for the color you want as the replacement.

I've attached two screenshots.The woman's sweater was originally red, but I changed it to the color of the blue rectangle.

Original.png

Color_Replaced.png

Share this post


Link to post
Share on other sites
5 hours ago, skylamar said:

However, Pixelmator Pro has a really simple Replace Color feature that works well.

I also have Pixelmator Pro. Its color adjustment "ML Enhance" color replacement option relies on machine learning (thus ML in the name), in which the app was trained on thousands of photos to recognize objects somewhat like people do.

Personally, I find that it works reasonably well on some photos but like in your example, for many others the results tend to look unnatural, particularly along edges.


Affinity Photo 1.8.3, Affinity Designer 1.8.3, Affinity Publisher 1.8.3; macOS Mojave 10.14.6 iMac (27-inch, Late 2012); 2.9GHz i5 CPU; NVIDIA GeForce GTX 660M; 8GB RAM
Affinity Photo 
1.8.3.180 & Affinity Designer 1.8.3.2 for iPad; 6th Generation iPad 32 GB; Apple Pencil; iPadOS 13.3.1

Share this post


Link to post
Share on other sites

R C-R, I agree that my example looks somewhat unnatural, but I didn't play around with it to get it to look more natural and I didn't try to refine the edges. I was just doing a quick example to show how the replace color feature works. The above example literally took me about a minute to do. I would think if Affinity Photo had a similar tool for replacing color that it would also have more options for fine-tuning.

Share this post


Link to post
Share on other sites
Posted (edited)
44 minutes ago, skylamar said:

R C-R, I agree that my example looks somewhat unnatural, but I didn't play around with it to get it to look more natural and I didn't try to refine the edges. I was just doing a quick example to show how the replace color feature works. The above example literally took me about a minute to do. I would think if Affinity Photo had a similar tool for replacing color that it would also have more options for fine-tuning.

I agree, a dedicated replace color tool would be really cool.

Still, this HSL menu way of replacing colors offers tons of control and doesn't take much longer unless you want it to. Even when showing my steps, it only took a few minutes:

https://youtu.be/2E2eonztYn4

There's two benefits that go along with using the HSL tool to do a color change.

  1. By doing it this way, you are masking by hue, not by color. This is an important distinction, because the overall color includes hue, saturation, and lightness (or value, depending on what model you want to use). As you can see on your example, the software that you are using masks by overall color. Because of that, it didn't select the shadow on her sweater, and that part is still red. For color replacement, using hue to guide your selection is important, and that's exactly what HSL allows you to do. 
  2. Additionally, by cranking up saturation or hue, you retain the relatively variability of saturation and hue (unless you clip the saturation). In other words, even after the color change, some pixels are still more saturated than others. Saturation on HSL naturally goes down as things get darker. Take a look on this image, which retains hue and saturation but has only 1 lightness value:

image.png.b0b16df5b71379a140da48e746b638da.png

So that's the other important thing. The software you are using is forcing the color change. It forces the same hue and saturation across the entire sweater. This is not how things are supposed to be done because, as we can see above, the shadow regions should have a different saturation than the lighter regions. This is another reason why you want to do it through HSL.

Still, this is just why the current method is superior quality. As far as speed, I would love to see a feature like you're describing.

Note: I didn't make her sweater that blue, although you could if you wanted (just crank up saturation a lot, and luminosity a bit). I just think that it's impossible to get a sweater the blue. If it is possible then I want one :o

Edited by HuniSenpai

Share this post


Link to post
Share on other sites

Literally the first thing I tried doing with affinity photo. 

Developers please make this available ASAP, this is pretty much THE tool I use in photoshop, it shouldn't take more than a couple steps. its simple stuff, kind of a deal breaker for me. 

Share this post


Link to post
Share on other sites
On 3/24/2020 at 12:43 AM, skylamar said:

HuniSenpai, would love to see the video, but it's private so I couldn’t view it.

Sorry for the late reply. For some reason I failed to publish the video, hence it being private. It's unlisted now, if you still want to view it. Sorry about that!

Share this post


Link to post
Share on other sites

Hi there, new to affinity.

Trying to replace the colour from blue do black, I set foreground to RBG 000, paint the whole BG with brush replacement and upon checking the BG with the colour picker it is 006 or 001 or 666. It's never full 000. Why is that?

Share this post


Link to post
Share on other sites
On 4/23/2020 at 6:05 AM, kerberos said:

Hi there, new to affinity.

Trying to replace the colour from blue do black, I set foreground to RBG 000, paint the whole BG with brush replacement and upon checking the BG with the colour picker it is 006 or 001 or 666. It's never full 000. Why is that?

Welcome to the Serif Affinity forums, kerberos.

I'm not sure I understand what you're doing, but if you're using the Color Replacement Brush Tool, you might want to review the Help on how it operates. Here's the online version, which describes it this way (with my emphasis😞
 

Quote

The Colour Replacement Brush Tool takes a sample of the colour under the cursor when you begin to paint, and will replace all closely matching colours along the stroke with the current Primary colour. The targeted colour's hue will be replaced with the current Primary colour's hue, while retaining saturation and lightness values of the original pixels.

Does that explain what you're seeing?


-- Walt

Windows 10 Home, version 1909 (183623.476),
   Desktop: 16GB memory, Intel Core i7-6700K @ 4.00GHz, GeForce GTX 970
   Laptop:  8GB memory, Intel Core i7-3625QM @ 2.30GHz, Intel HD Graphics 4000 or NVIDIA GeForce GT 630M
Affinity Photo 1.8.3.641 and 1.8.4.650 Beta   / Affinity Designer 1.8.3.641 and 1.8.4.650 Beta  / Affinity Publisher 1.8.3.641 and 1.8.4.651 Beta.

Share this post


Link to post
Share on other sites
On 5/18/2016 at 9:46 AM, cwmbrancon said:

Hi There,

 

I've just moved over to Affinity from Photoshop.

 

There is a 'Replace Colour' function in Photoshop that I use all the time. Basically selecting a colour and then altering the sliders to change. 

 

I cannot see this function anywhere in Affinity!

 

Can anyone help please

 

Thanks

 

 

#StayingHome Recolour Brush and Change Colours Using Affinity Photo on iPad #WithMe


there we go...

 

Share this post


Link to post
Share on other sites
12 hours ago, walt.farrell said:

Welcome to the Serif Affinity forums, kerberos.

I'm not sure I understand what you're doing, but if you're using the Color Replacement Brush Tool, you might want to review the Help on how it operates. Here's the online version, which describes it this way (with my emphasis😞
 

Does that explain what you're seeing?

Based on your quote, take as example my last picture I attached as a screenshot, the colour is blue, the primary colour is red, but the resulted colour with the color replacement tool is somehow dark red -ish kind of colour? Is that correct or am I still missing the point of the tool?

Share this post


Link to post
Share on other sites
8 hours ago, kerberos said:

the colour is blue, the primary colour is red, but the resulted colour with the color replacement tool is somehow dark red -ish kind of colour? Is that correct or am I still missing the point of the tool?

That's the designed result of the tool. The tool should have been named Hue Replacement Brush because only the hue of the painted colour affects the target pixels.

This might help if you are unfamiliar with Hue Saturation and Lightness (HSL) model of colour: https://www.nixsensor.com/what-is-hsl-color/

 

Share this post


Link to post
Share on other sites
11 minutes ago, anon2 said:

That's the designed result of the tool. The tool should have been named Hue Replacement Brush because only the hue of the painted colour affects the target pixels.

This might help if you are unfamiliar with Hue Saturation and Lightness (HSL) model of colour: https://www.nixsensor.com/what-is-hsl-color/

 

if I use hue/saturation in Lightroom/PS, I can easily transform a blue colour into red. this tool looks to me something like a merge/overlay.

Share this post


Link to post
Share on other sites
Posted (edited)
18 minutes ago, kerberos said:

if I use hue/saturation in Lightroom/PS, I can easily transform a blue colour into red. this tool looks to me something like a merge/overlay.

You could add a new Pixel layer above the source image, set that new layer's blend mode to Colour, and then use the regular Paint Brush Tool to paint into that.

Edited by anon2

Share this post


Link to post
Share on other sites
On 5/18/2016 at 9:46 AM, cwmbrancon said:

Hi There,

 

I've just moved over to Affinity from Photoshop.

 

There is a 'Replace Colour' function in Photoshop that I use all the time. Basically selecting a colour and then altering the sliders to change. 

 

I cannot see this function anywhere in Affinity!

 

Can anyone help please

 

Thanks

 

 

Hers what you need... Simple.

 

Share this post


Link to post
Share on other sites
On 4/25/2020 at 7:32 PM, anon2 said:

You could add a new Pixel layer above the source image, set that new layer's blend mode to Colour, and then use the regular Paint Brush Tool to paint into that.

I'll try that later.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

Please note the Annual Company Closure section in the Terms of Use. These are the Terms of Use you will be asked to agree to if you join the forum. | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.