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

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.

Link to comment
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 & 2   |   Affinity Photo 1 & 2   |   Affinity Publisher 1 & 2
Affinity Designer 2 for iPad   |   Affinity Photo 2 for iPad   |   Affinity Publisher 2 for iPad

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

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

Link to comment
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 & 2   |   Affinity Photo 1 & 2   |   Affinity Publisher 1 & 2
Affinity Designer 2 for iPad   |   Affinity Photo 2 for iPad   |   Affinity Publisher 2 for iPad

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

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.