What's new
Photoshop Gurus Forum

Welcome to Photoshop Gurus forum. Register a free account today to become a member! It's completely free. Once signed in, you'll enjoy an ad-free experience and be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

batch/automate remove color from images, BUT if not all images have color -> FAIL


djhwgh3

New Member
Messages
1
Likes
0
Hello. I would like to remove a very specific bold yellow from some images. I want to automate this by throwing this into photoshop's automate tool and running over hundreds and hundreds of images. I have no problem creating the macro, the problem is that my image doesn't contain this yellow color (some of them do not), the 'select' action doesn't work so any subsequent actions fail.

What I have tried:

* Select the color and fill with white. If the color doesn't exist, the entire image gets filled.
* Select the color and cut, then replace background layer with plain white -- If the color doesn't exist, get error that 'cut' action isn't available.
* Force a yellow stroke somewhere on the image to try and remove it later -- Can't record brush strokes with PS!!!

Are their 'conditional' actions? There must be a way to do this, but I can't bring up anything on the web. Thanks.
 
Add 2 commands to your action:
One before:
Canvas Size: Relative checked, Width: 1px, Height: 0 px. Anchor: Center. Etxension color: your yellow color.

And one after:
Canvas Size: Relative checked, Width: -1px, Height: 0 px. Anchor: Center.
 

Back
Top