We are in need of a script to generate the same image in different colors.
The script should? accept a "template image" in PNG format and replace a color inside the image with a? different color. The new image? should then be saved as a? PNG.
The function should look like this:
replaceImageColor(templateImageFilePath, newImageFilePath, colorToReplace, newColor).
Thank you