ImageMagick: How to change transparent background to color?
1 answer
From Mark an arbitrary offer . Create a background image with your color and smooth the original image over it.
convert -size 150x150 xc:"rgb(160,160,255)" source.png -layers flatten out.png
Edit If you don't want to worry about the image size, just change the background directly.
convert source.png -background "rgb(160,160,255)" -flatten out.png
Add - flatten to re-set the background color
+6
source to share