Imagick::addImage


wizard apg

ADDS a new image to Imagick object image list.

After the operation iterator position is moved at the end of the list.



<?php

bool 
public Imagick::addImage(Imagick $source);

?>

$source


The source Imagick object.





This function returns a TRUE on success.



  1 EXERCISE   

<?php 
  
$imagick 
= new Imagick(PATH2IMGW '/png/php0.png');
  
$t = new Imagick(PATH2IMGW '/png/php1.png');

$str1img 'img/results/php541.png';
  
$imagick->addImage($t);

$Data $imagick->getImageBlob();
  
// echo $Data;

$img imagecreatefromstring($Data);

imagejpeg($img$str1img);

echo 
basename($str1img); ?>
<br><br>
<img src="<?php echo $str1img?>"
 alt="<?php echo $str1img?>
 title="<?php echo $str1img?>">

 RESULT   

Resulting Image

php541.png


img/results/php541.png apr


Original Image

php0.png


img/png/php0.png apr