Skip to main content
Mau7rice
Known Participant
May 12, 2017
Answered

How to Content-Aware Fill Multiple layers

  • May 12, 2017
  • 7 replies
  • 9975 views

I have an animated gif with something in it I want to remove. I thought I could select all layers(100) and do a Edit > Fill but I cant seem to with the multiple layers selected. In this case where the thing I'm trying to remove is in the same spot in all 100 of those pics what's the best and quickest way to do the Fill on all layers at once ?

This topic has been closed for replies.
Correct answer JJMack

If you want to fill the area with the same content in that area you can do as Trevor has written.  Before you add the new layer  use the frame animation timeline fly-our menu and check new layer appear in all frames.  That way you do not need to manually change every frame in the timeline to make the layer visible in the frame's  composite image.

7 replies

Participant
December 2, 2020

Here's how I approached. Hope this is what you meant, and for all those who have searched for same problem.

One premise here is that the content-aware fill selection is all same in all layer/pngs.

 

1. Export all layers into individual png files into somewhere.

2. Select the area you want to content-aware fill.

3. Right click on selection and save the selection as new channel.

4. Now load new file with any png file you exported in step 1.

5. Go to actions window and start recording new action. Record these operations below.

 op 1 : Load selection you saved in step3.

 op 2 : Do content-aware fill.

6. Stop recording and batch apply this action to all those png files

 

There could be better way of doing this.

Please let me know if anyone came up with better idea.

 

Participant
December 2, 2020

Example - Removing undisired text from gif, with batch content-aware-fill

 

 

 Before edit. We have this adorable Husk gif but there's something dirty instagram thing down there...

 


 

 

Now we are gonna delete those baka mitais for all frames. Save selection! Batch loading the selection and content-fill!

 

 

 

 

Now the text is gone! All left is our cute Husky ! Aww~

 

 

Example used here is recorded directly from one of Husk official instagram(bar_cat75) story.

vincenzol17277194
Participant
April 28, 2019

My Adobe after effect is not showing on window screen

The Content aware Fill? Not seeing in my window it’s showing every other besides that one. My computer is a Mac. Software is 0SX EL Captain version 10.11.6. I checked on Adobe updates it says they’re all updated including after affects..VinnyVenom@gmail.com

Participant
December 2, 2020

This is photoshop forum.. not AE. Please make sure to ask only photoshop questions here.

Inspiring
August 4, 2018

Thanks. I have tried to follow the directions above, yet cannot get it to work. I am using Adobe Photoshop CC 2018 version 19.1.1 on macOS 10.12.6 (16G1510) Sierra and do not know much about how to use the application. Could someone please elaborate on the specific steps to accomplish that (content-aware removal of specific area in animated ".gif")? Many thanks in advance.

JJMack
Community Expert
Community Expert
August 4, 2018

You would need to content aware fix each layer that effetely make up that area in frames in the frame animation. then save out a new animated gif. You may need to modify more than one layer or  just add and additional layer that will be visible  on top of the  the frames that show the area in the animation by adding  that layer to the frames in the animation that display the area.  The animation frames are created in the timeline frame animation panel.

JJMack
Inspiring
August 5, 2018

You ask for a step by step way I gave one to you did you try it?

Once again

After you open your animated gif as Photoshop document

1.) Use the timeline frame animation panel's fly-out menu. Make sure new layer appear in all frame is checked is the current option.

2.) In the layers palette target the top layer

3.) Use  shortcut Shift+ctrl+N to add a new empty top layer.  I forgot to include the shift key in my last reply.  Shift+Alt+Ctrl+N will also add a new layer as will menu leyer>New.

4.) Add the content you want in the area in that area in this new layer.

5.) Menu Export>Save for web to save the new animated gif you want.

You open a panel's fly-out menu by click on the little icon in the panels upper right corner.  Many Photoshop pallets and panels have fly-out menus.

You need to look at some beginner  Photoshop tutorials.  Photoshop is not and application you can open and use without any knowledge of how it works and how one uses its tools  and feature.  Photoshop is huge and you need learn how it works and how to use its features and tools.


Thanks for your kind help. I think that I almost got it done, yet got stuck before finishing (see error message in boldface red below). Previously, I tried my best to do what is required, yet got lost. Sorry about my ignorance on this. I have tried again following your new directions (shown underlined below), doing as shown below:

1.) Use the timeline frame animation panel's fly-out menu. Make sure new layer appear in all frame is checked is the current option.

I thought that such fly-out menu was the "Window - Layers". I see now that it is "Window - Timeline" and there, clicking the four horizontal lines icon on top-right corner. There it shows "New Layers Visible in All Frames". So, that seems OK. Additionally, it shows first frame (or whatever that is named) selected. There are a total of 360 of such frames.

2.) In the layers palette target the top layer.

I guess that is "Window - Layers" and then selecting the Layers tab in such window. I understand that by "target the top layer" you mean to click layer 1 to select it. It was already selected and showing eye icon on left (indicates layer visibility). There are a total of 360 of such layers, albeit only the fist one shows such eye icon.

3.) Use  shortcut Shift+ctrl+N to add a new empty top layer.  I forgot to include the shift key in my last reply.  Shift+Alt+Ctrl+N will also add a new layer as will menu leyer>New.

I am using Photoshop in Mac. The "Layer - New - Layer" menu corresponds to Shift Command N. Command key (looped square symbol like ⌘; previously having an Apple logo like , as explained in "Command key" <https://en.wikipedia.org/wiki/Command_key>) on left of spacebar in Mac keyboard. I guess your commands are for Photoshop in Windows. Anyway, I have selected "Layer - New - Layer".

Photoshop names it as "Layer 361", places it between Layer 1 and Layer 2 in the "Window - Layers" and shows such new "Layer 361" selected (showing eye icon on left of such name).

4.) Add the content you want in the area in that area in this new layer.

I use the "Window - Tools" magnifier to increase image size. Now I use the Lasso tool of "Window - Tools" to select the area that I want to remove in the GIFT file. Then select "Edit - Fill - Contents - Content-Aware - OK". Yet, got the error:

Could not fill because there are not enough opaque source pixels.

So, I am stuck there. How to overcome such problem? Thanks again for all your kind help. I do really appreciate it.

JJMack
Community Expert
Community Expert
May 13, 2017

Yes I use the option both ways. I set it to the how  I want a layer added to frames  for a layer I'm about to add to the layer stack be added to all frames or frames I am working on and select.   It is not uncommon to need to use both options. When there are few frames it does not matter much which option is set for  it is  easy to set which layer are visible in a small number frames. When you have a large number of frames and layers this option is very useful.

JJMack
JJMack
Community Expert
JJMackCommunity ExpertCorrect answer
Community Expert
May 13, 2017

If you want to fill the area with the same content in that area you can do as Trevor has written.  Before you add the new layer  use the frame animation timeline fly-our menu and check new layer appear in all frames.  That way you do not need to manually change every frame in the timeline to make the layer visible in the frame's  composite image.

JJMack
Trevor.Dennis
Community Expert
Community Expert
May 13, 2017

JJMack  wrote

If you want to fill the area with the same content in that area you can do as Trevor has written.  Before you add the new layer  use the frame animation timeline fly-our menu and check new layer appear in all frames.  That way you do not need to manually change every frame in the timeline to make the layer visible in the frame's  composite image.

Hey, I didn't know that JJ.  Nice one.  What I do is select all the frames and turn the layer on.  In fact I think it might default to doing that anyway.  I find it is not always predictable how editing a frame animation is going to work for you.

barbara_a7746676
Community Expert
Community Expert
May 13, 2017

Sounds like you want to apply Content Aware Fill to multiple layers. It is not possible to Edit > Fill multiple layers at once. However, the Healing brush tools have an option to sample all layers.

Trevor.Dennis
Community Expert
Community Expert
May 12, 2017

You don't need to.  Make the fix in a new layer at the top of the stack, and have that layer turned on for every frame.