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

java script extend script: content aware fill and sampling area

New Here ,
Sep 30, 2024 Sep 30, 2024

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
485
Translate
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

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

Translate
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

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?

Translate
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

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

Translate
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

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

Translate
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

As @Lumigraphics wrote...

 

Select the text. Inverse the selection.

Translate
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

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

Translate
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

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

 

Translate
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 ,
Oct 07, 2024 Oct 07, 2024

yes it exactly what i am trying to do with extendscript

Translate
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 ,
Oct 07, 2024 Oct 07, 2024

You can't do what you want with scripting.

Translate
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

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

Translate
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 ,
Oct 07, 2024 Oct 07, 2024

 I am trying to controll the sampling area with extendscript.
Manually it working, I can to dissappear the text by conrolimg the sampling are with brush tool,  but i need to implement it with extendscript

Translate
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 ,
Oct 07, 2024 Oct 07, 2024

it is possible?

Translate
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 ,
Oct 07, 2024 Oct 07, 2024

It would be helpful to provide a few samples of the type of images you wish to automate and perhaps the binary versions mentioned.

Translate
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 ,
Oct 07, 2024 Oct 07, 2024
LATEST

The sample area cannot be set via script AFAIK and there is not a way to select just the text area (which Photoshop just sees as pixels, not text) so I don't believe that there is any way to do this, especially if the location, size, color, font of the text changes from image to image.

Translate
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