How to Create Multiple images in a TIF image
Posted: 2009-04-07T08:45:35-07:00
I am trying to create multiple images in a tif image, but am not having any luck, listed below is some sample code that I have experimented with.
All that I get is the last image added to the object, which in this case would be the img1.tif.
Can someone give me some insight or direct me to an example that will work. Any help is greatly appreciated.
Code: Select all
<?php
$temp1 = new Imagick('img3.tif');
$temp2 = new Imagick('img2.tif');
$temp3 = new Imagick('img1.tif');
$newimg = new Imagick('temp.tif');
$newimg-> addImage($temp1);
$newimg-> addImage($temp2);
$newimg-> addImage($temp3);
$newimg-> writeImage('temp.tif');
$newimg-> clear();
$newimg-> destroy();
?>
Can someone give me some insight or direct me to an example that will work. Any help is greatly appreciated.