I have got hundreds images of products with clear white backgrounds. I would like to change the white background color to become transparent.
Is there a means of batch processing this particular process with Photoshop or any other applications?
migrated from stackoverflow.com Jun 22 '12 at 2:09
This question came from our site for professional and enthusiast programmers.
You can achieve it by creating an Action that then can be used in a batch operation.
The following is a summarized step by step description on how to achieve it in case you already know your way around Photoshop. See further down for detailed description on how to do it:
Detailed step by step:
1. Open a representable image
2. Create action and record
3. Apply image transparency
4. Stop recording
Press the Stop recording button in the Actions panel. The action is now made.
5. Close the image
You can close the image and you do not need to save the changes.
6. Batch process
That's about it. Hope everything makes sense and that the solution fits your problem, although your question were posed a long time ago...
Just found this for you:
I guess it would work if your client doesn't need perfect masks for them (which would be okay for a webpage, since everything is small anyway)
But professionally speaking, I would mask them out one by one, just so nothing goes wrong. Anything you do automatic on photoshop is bound to go wrong when you least expect it.
The way that I do it is described here: it involves inverting the layer. It works well for the majority of situations but if you have lots of non-solid edge elements it can be a bit fussy.
Unfortunately there is no easy quick-fix for this
My typical method of choice is; Go to the channels panel, toggle through the Red Green and Blue options to see which has the most contrast, duplicate this layer and then ctrl/cmd+l the levels slider to increase this. Then using the brush on this layer colour in black what you want and white what you don't. You can then click on this channel for a selection path (ensure you re-click the rgb and uncheck your duplicate channel) and use a layer mask to perform a non-destructive deletion of the area you want to isolate (reverse the selection ctrl/cms + shift + I if necessary).
This site explains it with images too.
There are of course some uglier methods such as the wand too... Depending on the final size of the images, this may be ok. However, for a really high quality cut-out there is no substitute for time.