Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
batch replace/swap colors in PNG images
#1
I have a few dozen PNG images in a folder. Each image has the same color palette (only 10 colors total). I am looking for a batch file to make 3 color changes to each image - here is the sequence of the changes:

1) replace ffffff with 00ff00
2) replace 000055 with ffffff
3) replace ffff00 with 000000

The changes have to be done in this order. I'm using GIMP 2.10.2 on Windows 10 64-bit. I installed BIMP, but I don't see a way to implement the color changes. I could run 3 batches too, one for each color change, or build a windows batch file to make all the changes, I'm just unsure of the GIMP code to accomplish the task.

Thanks for any help/direction.
Reply


Messages In This Thread
batch replace/swap colors in PNG images - by dcraw999 - 05-12-2019, 02:49 AM

Forum Jump: