Jump to content
You must now use your email address to sign in [click for more info] ×

Replacing part of the image with an object from different image


Recommended Posts

37 minutes ago, Lich555 said:

Is it even possible in a reasonable amount of time?

It depends on what you need to do with it.
This "quick'n'dirty" mask took me just a few minutes:

aph_mask_candle_on_table.png.c5db3e1090443276f0f6170cbdaddb7a.png

Of course, the shadows and the reflection on the table don't match the pink color yet. That would be the more tricky part.

One thing to keep in mind:
Always attempt to work non–destructively, at least as long as you're not finished. Use layers, groups, mask layers, live adjustments, live filters, even vector objects whenever possible. If something can only be done "destructively", always duplicate the affected pixel layer first and disable it to have a backup copy in case anything goes wrong on the way. And in the end, you can always export to a flattened image, but not vice versa…

MacBookAir 15": MacOS Ventura > Affinity v1, v2, v2 beta // MacBookPro 15" mid-2012: MacOS El Capitan > Affinity v1 / MacOS Catalina > Affinity v1, v2, v2 beta // iPad 8th: iPadOS 16 > Affinity v2

Link to comment
Share on other sites

I think the approach that will give you the best results is to change the color of the pink candle to match the green one.

You could make a selection of the green candle and copy it into the other image. But since the green candle is most likely not the exact same dimensions as the pink candle, you would have to transform the candle without locking the aspect ratio, which would distort it slightly. Plus, the angle each photo was taken at is slightly different and the shadows on the candles are different, so the green candle may not look quite right in place of the pink candle.

If you can live without the wraparound label on the green candle, maybe try recoloring the pink candle. Here’s a tutorial…

 

Windows 10 22H2, 32GB RAM | Affinity Designer/Photo/Publisher 2 (MSI/EXE)

Link to comment
Share on other sites

Select just the green candle & refine to a new layer
Paste to the red candle image
Resize and position over the red candle

Tidy up (add adjustments/FXs to try to match lighting/shadows etc)



 

 

candle.jpg

To save time I am currently using an automated AI to reply to some posts on this forum. If any of "my" posts are wrong or appear to be total b*ll*cks they are the ones generated by the AI. If correct they were probably mine. I apologise for any mistakes made by my AI - I'm sure it will improve with time.

Link to comment
Share on other sites

Had a stab at it...

390935506_Screenshot2022-12-30at16_17_08.thumb.png.1a70d7b79cf9951a116408acc3b157b4.png

Spoiler

@carl123 Missed the pink candle wick 😉

 

iMac 27" 2019 Sequoia 15.0 (24A335), iMac 27" Affinity Designer, Photo & Publisher V1 & V2, Adobe, Inkscape, Vectorstyler, Blender, C4D, Sketchup + more... XP-Pen Artist-22E, - iPad Pro 12.9  
B| (Please refrain from licking the screen while using this forum)

Affinity Help - Affinity Desktop Tutorials - Feedback - FAQ - most asked questions

Link to comment
Share on other sites

19 hours ago, firstdefence said:

Had a stab at it...

390935506_Screenshot2022-12-30at16_17_08.thumb.png.1a70d7b79cf9951a116408acc3b157b4.png

 

So... select green candle, refine to the new layer. Paste to the image with pink candle, adjust. How do you select the needles? Is there some magic trick or just by hand each needle individually? :D

Link to comment
Share on other sites

Hi, re the needles, I made a simple selection with the Selection Brush Tool and then used Refine... within refine, I brushed over the overlapping needle points, then kept the output as a selection  clicked Apply and copied and pasted the selection to a new layer. Had to do a bit of tidying up afterwards on the pasted layer but literally was just a few seconds of tweaking. oh, and did a small amount of burning on the bottom right edge of the green candle as I thought it needed it, but really it was fine as it was, just my personal taste.  I also generally add a bit of blur around the edges where I think it wouldn't be quite in focus, I did that using the Blur brush tool.

I used the inpainting tool to remove the pink candles wick, Disclosure: I missed it initially until I spotted the same mistake in Carls example.

 

iMac 27" 2019 Sequoia 15.0 (24A335), iMac 27" Affinity Designer, Photo & Publisher V1 & V2, Adobe, Inkscape, Vectorstyler, Blender, C4D, Sketchup + more... XP-Pen Artist-22E, - iPad Pro 12.9  
B| (Please refrain from licking the screen while using this forum)

Affinity Help - Affinity Desktop Tutorials - Feedback - FAQ - most asked questions

Link to comment
Share on other sites

I wanted to try both method you've showed me here: recolouring and replacing the candle. Here's my try of a recolouring the candle and steps I've done to achieve this.

1.Masking out the candle
2.Using recolor adjustment. I've opened the green candle photo, picked the color of it using the Color Picker Tool and I've rewrited the HSL parameters at the right top of the Affinity window, to the Recolor Adjustment window. And in that moment weird things happened. Even though my HSL parameters in the Recolor Adjustment layer were the same, as the color picked from the green candle, the candle was, ekhm... you can see it on the screen. So... I was scrolling through all the blend modes. In some YT video a guy changed the blend mode to the Color, but it still came out wrong. As scrolling down, I've encountered the Hue blend mode and that is what you can see on the screen and I'm quite happy with the result. There're some pink colours, especially around the needles.

To sum it all. I'm happy with the result BUT I've done some things I don't fully understand like masks (yeah, I know, shame, but I don't fully understand them), blend modes, why I had to change the blend mode to Hue to see the nice color as it should be. Oh yeah, and the pink colour in some places. Don't know what's the best way to remove it. Just make better selections next time? I guess it'll be very difficult around the needles...

I'd be very grateful if you point out some potential mistakes I've made, what you would do different, the thing with blend mode and the pink colour that has remained in some places, especially around the needles, how you would deal with that.

Untitled.png

Untitled normal.png

Link to comment
Share on other sites

  • 1 month later...

Hi @Lich555,

Thanks for your post and our sincerest apologies for the delayed response here. We are exceptionally busy following the release of V2 and we thank you for your continued patience and understanding here.

On 1/4/2023 at 5:15 PM, Lich555 said:

Even though my HSL parameters in the Recolor Adjustment layer were the same, as the color picked from the green candle

As I understand it, this is due to a difference in how HSL colours are calculated, and how the Recolour Adjustment handles Saturation & Lightness

In the Colour Studio, your HSL Saturation & Lightness values are percentage based, between 0 & 100.

In the Recolour Adjustment, this allows you to reduce or increase the Saturation and Lightness further than the HSL sliders based on the colour values the adjustment is affecting.

The values used here are between -100% & 100%, meaning that 47% lightness in the HSL sliders is not the same as 47% Lightness in the Recolour adjustment.

Therefore 50% Lightness in the HSL sliders equates to 0% Lightness in the Recolour adjustment etc.

On 1/4/2023 at 5:15 PM, Lich555 said:

I've encountered the Hue blend mode and that is what you can see on the screen and I'm quite happy with the result

Changing the Blend Mode of the Adjustment will affect how these recolour values are calculated, based on the pixel area that you have masked - hence the change when selecting this Blend Mode. I'm glad to hear this provides you with more desirable results :)

On 1/4/2023 at 5:15 PM, Lich555 said:

I've done some things I don't fully understand like masks

If you haven't already, you can find out more about Mask layers here -

 

On 1/4/2023 at 5:15 PM, Lich555 said:

Oh yeah, and the pink colour in some places. Don't know what's the best way to remove it. Just make better selections next time? I guess it'll be very difficult around the needles...

Using the Refine Selection option should help with this, but may require some precision to be exact. I'd recommend the excellent tutorial from @OlivioS as this covers the tool in-depth:

I hope this helps!

Link to comment
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.

Loading...
×
×
  • Create New...

Important Information

Terms of Use | 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.