Skip to main content
Participating Frequently
September 30, 2024
Question

java script extend script: content aware fill and sampling area

  • September 30, 2024
  • 1 reply
  • 883 views

I want to use the content aware fill automatically. but the sampling area is overlay on text so the content awre fill the selection area with text.
Do i have option to ignore the text area in the sampling area? can i controll the sampling area?

This topic has been closed for replies.

1 reply

Legend
September 30, 2024

Your text should be on a separate layer, or you'll have to make a selection that doesn't include the text.

Participating Frequently
September 30, 2024

I can get binary image with the text in black and other area with white. how can i use it for contetnt aware fill so it will ignore the text area?

Participating Frequently
October 7, 2024

In the content aware menu you can draw with the "minus" (-) brush to erase the green highlighted parts (sampling area) so they aren't sampled in the fill. Is that what you're looking to do? 

 

Edit: Just realized you're looking to do this with extendscript so my answer below probably doesn't apply. But at least you can confirm this is basically what you're trying to do with a script?

 

Before:

 

 

After:

 


yes it exactly what i am trying to do with extendscript