Jump to content
Sign in to follow this  
shojtsy

Inpaint selection from Current and Below

Recommended Posts

Hi,

I have a selection of electric wires which I would like to inpaint on a sky, ideally with inpainting being on a separate layer. 

However when I choose Edit/Inpaint or Edit/Fill/Inpaint it always samples from the current layer only, which is the empty layer I would like the inpainting to be on.

I would like to do Inpaint of a selection with sampling from Current and Below. Adding an option to the Edit/Fill dialog would solve this issue.

Share this post


Link to post
Share on other sites

Could it be that the Below layer is of the type 'image'? If that's the case, rasterise first.


Affinity Photo/Affinity Designer/Affinity Publisher | macOS 10.14 Mojave | MBP13 2013

Share this post


Link to post
Share on other sites
1 hour ago, shojtsy said:

Hi,

I have a selection of electric wires which I would like to inpaint on a sky, ideally with inpainting being on a separate layer. 

However when I choose Edit/Inpaint or Edit/Fill/Inpaint it always samples from the current layer only, which is the empty layer I would like the inpainting to be on.

I would like to do Inpaint of a selection with sampling from Current and Below. Adding an option to the Edit/Fill dialog would solve this issue.

 

Hello shojtsy,

 

I've been doing this many times before. But I am using the inpainting brush and not the Edit/Fill/Inpaint dialog. The brush offers the option 'current layer and below'. That way I keep the inpainted (= touched up) content on a seperate layer and can turn it off and on just as I need it.

 

If you want to go via the Edit/Fill/Inpainting dialog you could first make a copy of the layer(s) below and afterwards erase or mask away what is not needed. The result would as well be inpainted content on a seperate layer.

 

d.


Affinity Designer 1.7.1.404 (beta 1.7.2.464)   |   Affinity Photo 1.7.1.404 (beta 1.7.2.464)   |   Affinity Publisher 1.7.1.404 (beta 1.7.2.458)
Affinity Designer for iPad 1.7.0.7   |   Affinity Photo for iPad 1.6.8.77

Windows 10 (1809) 64-bit - Core i7 - 16GB - Intel HD Graphics 4600 & NVIDIA GeForce GTX 960M
iPad pro 9.7" + Apple Pencil

Share this post


Link to post
Share on other sites
6 hours ago, dominik said:

 

Hello shojtsy,

 

I've been doing this many times before. But I am using the inpainting brush and not the Edit/Fill/Inpaint dialog. The brush offers the option 'current layer and below'. That way I keep the inpainted (= touched up) content on a seperate layer and can turn it off and on just as I need it.

 

Brushing works, however I build my complex selection based on luminocity of the dark wires, hence the request.

 

If you want to go via the Edit/Fill/Inpainting dialog you could first make a copy of the layer(s) below and afterwards erase or mask away what is not needed. The result would as well be inpainted content on a seperate layer.

 

This is what I was forced to do. However there are limitations of this workaround:

1) Convoluted. You need to save selection to spare channel, Deselect, Merge Visible, Load selection from Spare Channel, Inpaint, Mask, Merge Mask, Delete Spare Channel.

 

2) The process is not suitable for putting into a generic macro to automate it. This is caused by limited support for Spare Channel operations in macros. If you put all of the steps mentioned in 1) into a macro, you will notice that the Spare Channel Delete operation in the Macro targets incorrect Spare Channel. If you already have one or more Spare Channels before running the macro, your pre-existing Spare Channel will be deleted by the macro instead of the newly created, and the newly created is left over.

 

3) The process does not reproduce exactly what would happen with Inpaint on the new layer sampling from Current and Below. The difference occurs in the partially transparent pixels of the selection. When you inpaint on a merged layer the inpaint colors gets blended with the preexisting pixels on the partially selected pixels. If you make a masked copy of the inpainted area and add this above the original, the original colors get blended in twice into the pixels which were partially selected, as they are also already blended in into your new inpaint layer. I don't see a way to recover from a merged layer what should have been the inpaint layer to reproduce exactly the merged result.

Share this post


Link to post
Share on other sites
12 hours ago, shojtsy said:

 

Brushing works, however I build my complex selection based on luminocity of the dark wires, hence the request.

 

 

This is what I was forced to do. However there are limitations of this workaround:

1) Convoluted. You need to save selection to spare channel, Deselect, Merge Visible, Load selection from Spare Channel, Inpaint, Mask, Merge Mask, Delete Spare Channel.

 

2) The process is not suitable for putting into a generic macro to automate it. This is caused by limited support for Spare Channel operations in macros. If you put all of the steps mentioned in 1) into a macro, you will notice that the Spare Channel Delete operation in the Macro targets incorrect Spare Channel. If you already have one or more Spare Channels before running the macro, your pre-existing Spare Channel will be deleted by the macro instead of the newly created, and the newly created is left over.

 

3) The process does not reproduce exactly what would happen with Inpaint on the new layer sampling from Current and Below. The difference occurs in the partially transparent pixels of the selection. When you inpaint on a merged layer the inpaint colors gets blended with the preexisting pixels on the partially selected pixels. If you make a masked copy of the inpainted area and add this above the original, the original colors get blended in twice into the pixels which were partially selected, as they are also already blended in into your new inpaint layer. I don't see a way to recover from a merged layer what should have been the inpaint layer to reproduce exactly the merged result.

 

Hi shojtsy,

 

I see that you have 'an advanced' use of inpainting, which is of course fine :)  In regard to this it makes sense to ask for a further development of the inpainting feature in AP. I am sure developers will come up with enhancements of the feature in a future version.

 

For many of my needs it works the way as I described above and do not mind the extra steps. I also do not use macros for that purpous. Although, I admit that I occasionally have to finetune minor details manually for a perfect result. Still, I believe Affinity has already come a long way with the quality of the inpainting tools.

 

Happy new year :)

 

d.


Affinity Designer 1.7.1.404 (beta 1.7.2.464)   |   Affinity Photo 1.7.1.404 (beta 1.7.2.464)   |   Affinity Publisher 1.7.1.404 (beta 1.7.2.458)
Affinity Designer for iPad 1.7.0.7   |   Affinity Photo for iPad 1.6.8.77

Windows 10 (1809) 64-bit - Core i7 - 16GB - Intel HD Graphics 4600 & NVIDIA GeForce GTX 960M
iPad pro 9.7" + Apple Pencil

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×