We are trying to create a thumbnail of a flat image which has only 4 colors and when we generate a thumbnail of that image they are enhanced by many colors . We want to retain the original colors only.
Can someone please let us know how to do retain the colors of the original image.
Commands I have done
1. convert BMPfile.bmp -strip PNGFile.png
2. convert PNGFile.png -matte \( +clone -fuzz 15% -transparent \ #0000FF \) -compose dst-out -composite PNGFile_Color1.png
We repeat step 2 to get all the 4 colors.(Even fuzz can be removed I suppose).and then run the following for all 4 images(we have segrgated all 4 colors of the image by this)
3. convert PNGFile_Color1.png -thumbnail 325x450 -quality 100 -strip -coalesce -gravity center -background white -extent 325x450 -strip PNGFile_Color1_Thumb.png
This thumbnail generated now has more than one color for flat files also.
Can someone please help.
Here are the images.



