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