I think this is an easy one.
I have 2 Pictures/JPGs and i want them to merge into one picture where the 2 are side by side.
So i have pic [A] and pic [B] and I w
Here the PHP Code I use at Kinoulink (a french start-up) :
$im1 = new \Imagick($media1);
$im2 = new \Imagick($media2);
$imTotal = new \Imagick();
$im1->cropthumbnailimage(62, 128);
$im2->cropthumbnailimage(62, 128);
$imTotal->newimage(128, 128, '#ffffffff');
$imTotal->compositeimage($im1, \Imagick::COMPOSITE_DEFAULT, 0, 0);
$imTotal->compositeimage($im2, \Imagick::COMPOSITE_DEFAULT, 66, 0);
$imTotal->writeimage($albumCoverFilePath);