PHP 8.5.0 Alpha 4 available for testing

Voting

: eight plus one?
(Example: nine)

The Note You're Voting On

Iddles
14 years ago
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;

?>

<< Back to user notes page

To Top