Mobile app version of vmapp.org
Login or Join
Deb5748823

: The simplest replacement of color in PNG icons I need to replace the color of some PNG icons. Examples: shall become JavaScript2 http://www168.lunapic.com/editor/working/146856450596963-bt-5. shall

@Deb5748823

Posted in: #Gimp #Inkscape #Png

I need to replace the color of some PNG icons. Examples:


shall become JavaScript2 www168.lunapic.com/editor/working/146856450596963-bt-5.
shall become: YAML2 www168.lunapic.com/editor/working/146856450596963-bt-10.
Only color replacement: orange → violet, orange → green, and no other actions.

I never worked before with the advanced graphic editors, whether I can carry out replacement of colors?

Any non-commercial graphic editor for Windows would be fine (not Photoshop).

10.03% popularity Vote Up Vote Down


Login to follow query

More posts by @Deb5748823

3 Comments

Sorted by latest first Latest Oldest Best

 

@Merenda852

if the white in your icons is actually transparency:


Set the alpha-lock for the layer (checkerboard icon at top of layer list)
Make sure you have no selection
Bucket fill with new color, the alpha-lock will protect the transparent pixels (actually, it will make sure all pixels keep their initial opacity).

10% popularity Vote Up Vote Down


 

@Cofer715

In ImageMagick or GraphicsMagick:

mogrify -fuzz 50% -fill violet -opaque "#F4BF75" *.png


I used "identify -verbose file.png" to display the histogram and determine that #F4BF75 is the predominant orange color present.

The fuzzing is needed because your samples are antialiased and have a variety of approximately orange colors present. You can omit "-fuzz 50%" and then the results will have orange halos like the results you posted.

10% popularity Vote Up Vote Down


 

@Ogunnowo857

In Gimp:


Open the document
Open Hue-saturation tool (
Instructions
)


When you got the Hue-saturation window open, just adjust the hue
slider like a crazy person and you should see the colors change.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme