First you should put the -geometry outside the parenthesis
Code: Select all
convert -size 4500x4500 xc:white ( -size 400x400 xc:red ) -geometry +500+900 -composite a_new.png
Second, composite can only do two images at a time. So you need to specify geometry for both composites.
If you need to clone the second image for the using again, then you must clone the first to do the first composite and then at the end delete the originals.
You also probably do not want the minus sign for the clone.
So this creates the first two image. Then it clones them and composites them together. Then it clones the second image again. Then it composites that onto the previous composite and before removes the original two. If you want the two red squares to be centered on each other, then you need to use -gravity center and -geometry values relative to the center. Try these two to see.
Code: Select all
convert -size 4500x4500 xc:white ( -size 400x400 xc:red ) ^
( -clone 0 -clone 1 -geometry +500+900 -composite ) ^
( -clone 1 -background none -rotate 45 +repage ) ^
-delete 0,1 -geometry +500+900 -composite ^
a_new.png
Code: Select all
convert -size 4500x4500 xc:white ( -size 400x400 xc:red ) ^
( -clone 0 -clone 1 -gravity center -geometry +500+900 -composite ) ^
( -clone 1 -background none -rotate 45 +repage ) ^
-delete 0,1 -gravity center -geometry +500+900 -composite ^
a_new.png
See
http://www.imagemagick.org/Usage/layers/#convert