I'm just get started out with Imagick, and had a question about the montageImage function. I want to stitch together four tiles to create a single image. I can do this fine on the command line
Code: Select all
montage 1 2 3 4 -geometry +0+0 montage.jpg
Code: Select all
$tiles = new Imagick(glob('images/*.jpg'));
$tiles->montageImage(new imagickdraw(), "2x2+0+0", "512x512+0+0", imagick::MONTAGEMODE_CONCATENATE, "0x0+0+0");
//output
header( "Content-Type: image/jpg" );
echo $tiles;
Thanks!
Keith