:: https://stackoverflow.com/questions/47954470/drawbacks-of-using-flatten-option :: Three ways to convert PNG with transparency to JPG. :: Output images (that is, JPG files) will be binary identical. :: 1st approach :: convert google.png -flatten google_flatten.jpg :: 2nd :: convert google.png -background white -alpha background google_bg_white.png :: convert google_bg_white.png -flatten google_bg_white_flatten.jpg :: 3rd :: convert google.png -background white -alpha remove google_alpharemoveoff.jpg