Comment by ca7

4 years ago

Changing "-flatten" to "-alpha flatten" (without the double quotes) results in an error for me.

> convert: UnrecognizedAlphaChannelOption `flatten' @ error/convert.c/ConvertImageCommand/673.

Probably due to an older ImageMagick version. Try "-alpha remove" which should be more or less equivalent (I think)