To create picture Like This :
You need to use :
exec('convert '.$newfile1.' -thumbnail 300x200 -bordercolor white -border 10 -bordercolor grey60 -border 1 -bordercolor none -background none -rotate 3 '.$pic01.'');
exec('convert '.$newfile1.' -thumbnail 300x200 -bordercolor white -border 10 -bordercolor grey60 -border 1 -bordercolor none -background none -rotate -4 '.$pic02.'');
exec('convert '.$newfile1.' -thumbnail 300x200 -bordercolor white -border 10 -bordercolor grey60 -border 1 -bordercolor none -background none -rotate 5 '.$pic03.'');
exec('convert '.$newfile1.' -thumbnail 300x200 -bordercolor white -border 10 -bordercolor grey60 -border 1 -bordercolor none -background none -rotate -9 '.$pic04.'');
exec('convert -size 370x320 xc:none '.$result_image.'');
exec("composite -gravity center ".$pic01." ".$result_image." -quality 100 ".$result_image);
exec("composite -gravity center ".$pic02." ".$result_image." -quality 100 ".$result_image);
exec("composite -gravity center ".$pic03." ".$result_image." -quality 100 ".$result_image);
exec("composite -gravity center ".$pic04." ".$result_image." -quality 100 ".$result_image);
exec("convert ".$result_image." -background black ( +clone -shadow 100x3+0+0 ) +swap -background none -flatten ".$result_image);
And your result will be like example.
don't forget if you need to more image or different images repeat :
exec('convert '.$newfile1.' -thumbnail 300x200 -bordercolor white -border 10 -bordercolor grey60 -border 1 -bordercolor none -background none -rotate 3 '.$pic01.'');
and change the $newfile or change $pic01 .... $pic(n) if you need.
and compose it with $result_image like:
exec("composite -gravity center ".$pic(n)." ".$result_image." -quality 100 ".$result_image);
I hope this use full.
best regard, thank you Mark
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…