note 105231 modified in gmagick.compositeimage by danbrown
| From: | danbrown@php.net | Date: | Thu, 04 Aug 2011 15:05:13 +0000 |
| Subject: | note 105231 modified in gmagick.compositeimage by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-182218@lists.php.net to get a copy of this message | ||
Merging 2 images
#!/usr/bin/php
<?php
// wallace Lau kok poh <>
//Instantiate a new Gmagick object
$imgMain = new Gmagick('Torso_F.tiff');
$imgBarcode = new Gmagick('barcode.jpeg');
//stamp the barcode on top of the Main image
$imgMain->compositeimage($imgBarcode, 1, 150, 150);
//Write the current image at the current state to a file
$imgMain->write('withBarcode.tiff');
?>
--was--
Merging 2 images
#!/usr/bin/php
<?php
// wallace Lau kok poh <>
//Instantiate a new Gmagick object
$imgMain = new Gmagick('Torso_F.tiff');
$imgBarcode = new Gmagick('barcode.jpeg');
//stamp the barcode on top of the Main image
$imgMain->compositeimage($imgBarcode, 1, 150, 150);
//Write the current image at the current state to a file
$imgMain->write('withBarcode.tiff');
?>
http://php.net/manual/en/gmagick.compositeimage.php