Search found 2 matches

by TheMasterGabriel
2018-03-11T11:03:51-07:00
Forum: Users
Topic: How to swap colors in an image?
Replies: 3
Views: 3274

Re: How to swap colors in an image?

Oh wow "-level-colors" is what I was looking for! I already knew the 2 main colors, so it was as simple as running: convert test.png -level-colors "#73233C",white +level-colors white,"#73233C" test_swapped.png Is there a way to preserve transparent pixels in the image?
by TheMasterGabriel
2018-03-11T07:52:41-07:00
Forum: Users
Topic: How to swap colors in an image?
Replies: 3
Views: 3274

How to swap colors in an image?

Is there a way to swap the colors of an image? For example, in the image below the white can become the red and the red can become the white. I need the anti-aliasing around the edge of the circle to swap as well. The circle is just an example. I'm asking more generically, so I can apply the same ...