Change multiple color of an image.

Questions and postings pertaining to the development of ImageMagick, feature enhancements, and ImageMagick internals. ImageMagick source code and algorithms are discussed here. Usage questions which are too arcane for the normal user list should also be posted here.
Post Reply
ahmed42
Posts: 1
Joined: 2015-09-08T23:55:54-07:00
Authentication code: 1151

Change multiple color of an image.

Post by ahmed42 »

I have vector image having 3 colors, let say background is white, other 2 colors are #44525C #FECC0A, What I want to do is change these boht 2 colors in other two colors
Like #44525C in #CCCCCC
AND #FECC0A in #333333

let me know how it can be done in image magic thanks .
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Change multiple color of an image.

Post by snibgo »

ImageMagick is a raster image processor, not vector. If you use IM, it will first convert the image to raster (pixels). Then you can change colours.

If you want to keep the image as vector, don't use IM. If you can convert the file to a text format such as SVG, a text editor will do the job.
snibgo's IM pages: im.snibgo.com
Post Reply