note 104759 added to function.imagick-compositeimage
| From: | Iddles at osu1 dot php dot net | Date: | Wed, 06 Jul 2011 05:01:40 +0000 |
| Subject: | note 104759 added to function.imagick-compositeimage | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-181269@lists.php.net to get a copy of this message | ||
To copy the alpha channel from one image to another, you can do the following:
<?php
$img1 = new Imagick( "image1.png" );
$img2 = new Imagick( "image2.png" );
$img1->compositeImage( $img2, imagick::COMPOSITE_COPYOPACITY, 0, 0 );
header('Content-type: image/png');
echo $img1;
?>
----
Server IP: 109.169.40.147
Probable Submitter: 217.154.131.202
----
Manual Page -- http://www.php.net/manual/en/function.imagick-compositeimage.php
Edit -- https://master.php.net/note/edit/104759
Del: integrated -- https://master.php.net/note/delete/104759/integrated
Del: useless -- https://master.php.net/note/delete/104759/useless
Del: bad code -- https://master.php.net/note/delete/104759/bad+code
Del: spam -- https://master.php.net/note/delete/104759/spam
Del: non-english -- https://master.php.net/note/delete/104759/non-english
Del: in docs -- https://master.php.net/note/delete/104759/in+docs
Del: other reasons-- https://master.php.net/note/delete/104759
Reject -- https://master.php.net/note/reject/104759
Search -- https://master.php.net/manage/user-notes.php