
convert 2.gif -background white -flatten 2.jpg
2.jpg

If you convert to a png image, the color will not be distorted
convert 2.gif -background white -flatten 2.png
2.png

Why are the colors distorted when converted to jpg pictures?
What parameters convert.exe need to add to keep the jpg image color unchanged?
thanks