2.gif
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
About gif to jpg color distortion
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: About gif to jpg color distortion
Gif has limited colors (<=256) and palette type. When converted to jpg with lossy compression, you introduce new colors and 24-bit color. You would have to create a color map image and use -recolor to try to get the same colors back in your jpg, though that may not work, since JPG does not support 8-bit total color.
Re: About gif to jpg color distortion
Thanks for your tip.
When I set the image compression quality to 100, the color is no longer distorted.
When I set the image compression quality to 100, the color is no longer distorted.