To batch replace the white background of images with transparent in Photoshop, a script is to be used. The steps for the process are below.
Step 1. First of all, create a folder on your system having all the images that you want to process. In the C drive create a new folder named ps and inside this ps folder create another two folders called src and out. So finally, now, you have 2 folders- c:/ps/src and c:/ps/out.
Step 2. Using the link https://drive.google.com/file/d/1OzhX_ZaQI0gCZB3wZzd1jG6_fCg7UVCr/view download the script.
Step 3. Now all the images for which background needs to be removed have to be copied to c:/ps/src folder.
Step 4. Open the Adobe Photoshop software and select File > scripts > Browse. and choose the script that is downloaded.
The script will start functioning and will remove the background of all the images and make them transparent. The processed images with new transparent background will save to c:/ps/out folder.