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

Help! Recorded action not removing background for WebP

New Here ,
Nov 26, 2024 Nov 26, 2024

Copy link to clipboard

Copied

Hello,

 

I created a simple action in Photoshop to go from a TIFF file, merge the layers, create a selection the included path and inverse it, delete the background, convert to RGB, and then save as WebP file.

 

When I do the process manually, everything is fine. But once I play the action, either on one file or in a batch, it doesn't remove the background. Which is weird, because it works when I record the action. I have no idea why the action itself doesn't work. I have a lot of files to transfer to WebP, so I don't want to do this manually for each of them since it would be so time-consuming.

 

Any idea what the problem could be?

TOPICS
Actions and scripting , Windows

Views

177

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

correct answers 2 Correct answers

Community Expert , Nov 26, 2024 Nov 26, 2024

@Cédric31799117ba43 â€“ Record adding a layer mask from selection rather than delete.

Votes

Translate

Translate
People's Champ , Nov 27, 2024 Nov 27, 2024
If the path is selected (highlighted), then the Delete command will delete the path and not the pixels in the selection. If so, you must insert the Deselect Path command before deleting.
 

Votes

Translate

Translate
Adobe
Community Expert ,
Nov 26, 2024 Nov 26, 2024

Copy link to clipboard

Copied

Post a screenshot of the action with ALL steps expanded/disclosed so that the details are visible.

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 ,
Nov 26, 2024 Nov 26, 2024

Copy link to clipboard

Copied

Cdric31799117ba43_0-1732652681739.png

The Delete action is the one that doesn't seem to register. Tried removing all the action after Delete and running the action, and it doesn't work.

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 ,
Nov 26, 2024 Nov 26, 2024

Copy link to clipboard

Copied

@Cédric31799117ba43 â€“ Record adding a layer mask from selection rather than delete.

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 ,
Nov 26, 2024 Nov 26, 2024

Copy link to clipboard

Copied

Is there a checkmark on the left side of the delete step? Just checking.

checkmark on the left side.jpg

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 ,
Nov 27, 2024 Nov 27, 2024

Copy link to clipboard

Copied

Yes

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
People's Champ ,
Nov 27, 2024 Nov 27, 2024

Copy link to clipboard

Copied

If the path is selected (highlighted), then the Delete command will delete the path and not the pixels in the selection. If so, you must insert the Deselect Path command before deleting.
 

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 ,
Nov 27, 2024 Nov 27, 2024

Copy link to clipboard

Copied

The path isn't highlighted after the selection is made, but you're right, the path is what ends up being deleted. Though that doesn't happen when recording the action. No idea how it switches from deleting the layer information to deleting the path just because of the action.

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
People's Champ ,
Nov 27, 2024 Nov 27, 2024

Copy link to clipboard

Copied

quote

The path isn't highlighted after the selection is made, but you're right, the path is what ends up being deleted. Though that doesn't happen when recording the action. No idea how it switches from deleting the layer information to deleting the path just because of the action.

By @Cédric31799117ba43

 

You can see that the path is specially selected at first "Select path Path1". Then you create a selection. The operation of creating a selection from a path via ctrl+click or via the drop-down menu "Make selection..." deselects the path. This moment (deselection) is not recorded in the action, only the moment of creating the selection. This can lead to the fact that everything can go wrong. Perhaps this behavior is a bug.

 

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 ,
Nov 28, 2024 Nov 28, 2024

Copy link to clipboard

Copied

quote

Cdric31799117ba43_0-1732652681739.png

The Delete action is the one that doesn't seem to register. Tried removing all the action after Delete and running the action, and it doesn't work.


By @Cédric31799117ba43

 

Following up on the post from @r-bin â€“ I too think that the issue is that you need to record the "deselect current path" before delete:

 

2024-11-28_19-48-38.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
Community Expert ,
Nov 28, 2024 Nov 28, 2024

Copy link to clipboard

Copied

LATEST

If your files consistently contain Path 1, then do not select a path before converting to a selection. Instead, use Ctrl + click on the path's thumbnail to load the selection while recording; it should work without any issues. I believe you always have Path 1 in your files because there isn't an Insert Path step.

 

Here is how action should appear from the outset:

action with path.jpg

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 ,
Nov 27, 2024 Nov 27, 2024

Copy link to clipboard

Copied

While on the general topic of batch saving to WebP, I have a batch script that can run an action here:

 

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