2

I have a lot of .png images, and I want to replace a color to another color..
Is there a batch program to do that? I'm on Windows 7

3
  • You need to update your question and make it clearer with more detail about your issue. Are you changing colours in a palette, in Microsoft/Mac/Linux OS itself or in a specific program?
    – Dave
    Aug 13, 2012 at 7:56
  • @DaveRook I updated the question
    – TTem
    Aug 13, 2012 at 8:03
  • Do you want to programmatically change one colour for another, in a series of PNG images?
    – user3463
    Aug 13, 2012 at 8:04

2 Answers 2

2

For a single color replacement I suggest you use XnView's batch processing tool:

XnView

If you need to replace a range of colors, or use tolerance settings (especially useful for JPEG images where neighboring pixels might have slightly different colors - sometimes imperceptible to the eye), I recommend Batch Images. It's also more user friendly for batch processing:

Batch Images Color Replace

Batch Images Color Replace

Disclaimer: I am a frequent user of both XnView and Batch Images.

1
  • You can actually perform several color remplacements in XnView in a single batch run (with simple X->Y replacements).
    – Timores
    Mar 11, 2016 at 11:02
0

I think the same answer I gave you here can be applied to this question as well.

It depends on what graphical programs you have, but Photoshop Elements is fairly cheap and you can batch process.

The issue is it really depends on how complex your .png images are - for example, if your images are just black and white then this should be be quite an easy task with accurate results - however, if your image is a picture with various hues and shades of colours this task becomes more complicated and batch processing may not be possible. For example, you want to replace green with red. Well, what shade of green? Some green's have yellow in and where some may describe a colour as 'yellowy green' others may describe it as a 'greeny yellow'... This obviously makes direct colour chnage over a range of colours more difficult to define. Therefore, it may even require part batch and part manual.

This is of course assuming you know how to use these type of programs.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .