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?
@Cédric31799117ba43 – Record adding a layer mask from selection rather than delete.
Copy link to clipboard
Copied
Post a screenshot of the action with ALL steps expanded/disclosed so that the details are visible.
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
@Cédric31799117ba43 – Record adding a layer mask from selection rather than delete.
Copy link to clipboard
Copied
Is there a checkmark on the left side of the delete step? Just checking.
Copy link to clipboard
Copied
Yes
Copy link to clipboard
Copied
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.
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.
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.
Copy link to clipboard
Copied
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:
Copy link to clipboard
Copied
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:
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: