So to create some sample images, i use the following command, which creates red.jpg, yellow.jpg, orange.jpg, green.jpg, brown.jpg and orange.jpg, each 2152x1416 pixels.
Code: Select all
for COLOUR in red blue yellow orange green brown ; do \
convert -size 2152x1416 xc:${COLOUR} -fill ${COLOUR} -draw "rectangle 0,0 2152,1416" ${COLOUR}.jpg ; done
Code: Select all
convert -size 772x407 xc:transparent \
\( red.jpg -geometry 400x264+372+37 -background black -shadow 60x5 \) -composite \
red.jpg -geometry 400x264+362+27 -composite \
\( blue.jpg -geometry 405x267+324+61 -background black -shadow 60x5 \) -composite \
blue.jpg -geometry 405x267+314+51 -composite \
\( yellow.jpg -geometry 397x262+286+96 -background black -shadow 60x5 \) -composite \
yellow.jpg -geometry 397x262+276+86 -composite \
\( brown.jpg -geometry 411x271+211+126 -background black -shadow 60x5 \) -composite \
brown.jpg -geometry 411x271+221+136 -composite \
\( green.jpg -geometry 440x290+140+101 -background black -shadow 60x5 \) -composite \
green.jpg -geometry 440x290+130+91 -composite \
\( orange.jpg -geometry 522x344+15+15 -background black -shadow 60x5 \) -composite \
orange.jpg -geometry 522x344+5+5 -composite \
composite_out.png
I tried something like the following, but didnt figure out how to create a shadow without loading the original image a second time, rather than drawing a black rectangle and create a shadow from it:
Code: Select all
convert -size 767x401 xc:skyblue \
-draw "rectangle 324,61 400,264" -background black -shadow 60x4+4+4 \
-draw "image over 314,51 400,264 red.jpg" -composite \
composite_out.png