White background
convert -size 800x800 xc:white white.png
xc:meant "X Constant Image", but now it's just a shorthand for canvas:. This means that you can also use:
convert -size 800x800 canvas:white white.png
and because "white" is the default, if no color is specified, you can also use:
convert -size 800x800 xc: white.png
convert -size 800x800 canvas: white.png
Transparent background
If "blank" means "transparent," simply use this word as a color:
convert -size 800x800 xc:transparent transparent.png
Answer made by ImageMagick v6 Examples and How to create a new image?
source
share