Automate color selection in photoshop?
July 17, 2011 11:12 PM Subscribe
Is there a way to automate color selection in photoshop?
posted by Jezztek to computers & internet (10 answers total) 1 user marked this as a favorite
I have a big batch of graphic images I need to process for a project I'm working on. These images are all identical in size and they all have a single solid color backdrop (with a design in the center). One of the steps in my automation requires me to enlarge the canvas of the image, and I need the new area to match the existing background color of the image. The rub is that I've got 100's of files to do and they all have a different random solid colored background, and so far I can't seem to find out how to automate selecting a color based an the current image.
The canvas size options let you select a specific color, or use the foreground /background color. I can also use the eyedropper tool while recording the action but that only records the specific color selection I made during the recording.
All of the images have areas I know I can safely sample from, so if there was any way to have an action record the actual act of selecting the eyedropper tool and choosing a specific point. Also of note is that the background color of each image is by far the most common color in each image, so if there is any way to find the dominant color in an image using histograms or whatnot then that would be a possible strategy.
Any ideas for me? Thanks!