This is the relevant part of the code I am using:
Code: Select all
exec ( "convert in.jpg ( -thumbnail 1000x1000 -crop 600x800+0+0 +repage ) -crop 100x466+0+100 -fill black -colorize 40% -rotate 90 -pointsize 35 -fill Black -gravity north -annotate +0+20 \"www.rubblewebs.co.uk\" -rotate -90 -virtual-pixel transparent -distort Perspective \" 0,0 0,27 100,0 100,0 100,466 100,466 0,466 0,412 \" testSide.png");
exec ( "convert testSide.png ( +clone -background gray -shadow 80x3-15+15 ) +swap -background none -layers merge +repage test.png");
echo "<img src=\"test.png\">";
