Is there any way to change the background color of a batch of photos?
All photos have the same dimensions and background

I have around 100 of these images with transparent background enter image description here

enter image description here

These images are for a TFT display and the display UI editor does not support transparent images. It will convert the transparent part to white

enter image description here

  • Welcome on GD.SE, Girish! Your question is similar to this (see also this). I suggest you to use ImageMagick for such a task. Commented Sep 5, 2020 at 7:36
  • Yes. It could be done in Photoshop by recording an Action and then applying it to a bunch images using File > Automate > Batch.
    – Billy Kerr
    Commented Sep 5, 2020 at 22:58

1 Answer 1


use Photoshop

  • open the first image
  • record a new action
  • add a new layer
  • reorder the new layer to be the first layer from bottom
  • change Foreground Color to white
  • select the Palnt Bucket Tool
  • and click on the image to make the new added layer white
  • save the file
  • stop the action recording
  • click file > Automate > Batch
  • in play section select you action
  • in source select the folder that contain the images
  • Check action save as commands
  • click okay and Photoshop will do the work for you

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.