Page 1 of 1

flatten to remove transparency not working

Posted: 2018-07-12T18:03:09-07:00
by kiranbg123@gmail.com
convert test.png -flatten -background white convertTest.jpg is not working with image magick. It works for most of the images but doesnt work for certain images.
It messes up the image after converting. Is this known issue with IM?

Re: flatten to remove transparency not working

Posted: 2018-07-12T18:31:59-07:00
by fmw42
Please always provide your Imagemagick version and platform. Also post an example image that does not work. If using IM 7, then use magick rather than convert.

When flattening, put -background white before -flatten. Proper order is important for IM 7, but IM 6 is more forgiving.