imagemagick convert transparent background code example Example: imagemagick add background to transparent png convert -flatten img1.png img1-white.png