• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

java script extend script: content aware fill and sampling area

New Here ,
Sep 30, 2024 Sep 30, 2024

Copy link to clipboard

Copied

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?

TOPICS
Windows

Views

103

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe
LEGEND ,
Sep 30, 2024 Sep 30, 2024

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Sep 30, 2024 Sep 30, 2024

Copy link to clipboard

Copied

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?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Sep 30, 2024 Sep 30, 2024

Copy link to clipboard

Copied

"you'll have to make a selection that doesn't include the text"

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Sep 30, 2024 Sep 30, 2024

Copy link to clipboard

Copied

the text which causing me a problem is not layer text,  it text in the orig image

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Sep 30, 2024 Sep 30, 2024

Copy link to clipboard

Copied

As @Lumigraphics wrote...

 

Select the text. Inverse the selection.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Sep 30, 2024 Sep 30, 2024

Copy link to clipboard

Copied

I have rect area (selection area) which i want to apply content aware, but the text nearby the rect is included in the sampling area, and i am getting the text in the rect area.
how can i remove the text from the sampling area? the text is not layer, it in the prig background image

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Sep 30, 2024 Sep 30, 2024

Copy link to clipboard

Copied

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:

ThioJoe_0-1727713116258.png

 

output.gif

 

 

After:

ThioJoe_1-1727713151658.png

 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Sep 30, 2024 Sep 30, 2024

Copy link to clipboard

Copied

LATEST

Only use the part of the image that doesn't include text to sample from.

https://helpx.adobe.com/photoshop/using/content-aware-fill.html

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines